0
0
Fork 0

small changes to get it working

This commit is contained in:
Gibheer 2012-10-05 08:12:34 +02:00
parent f12ceef4a8
commit 609015b6fc
1 changed files with 2 additions and 2 deletions

View File

@ -4,7 +4,7 @@ module Zero
# The response for rack has to be an array of three elements. This class makes
# it easier to fill all the needed data.
class Response
attr_reader :code, :header, :body
attr_accessor :code, :header, :body
# init a new response
def initialize
@ -16,7 +16,7 @@ module Zero
# builds the response for rack and checks for protocol errors
# @return Array the rack response
def response
[@code, @header, @body]
end
end
end