diff options
author | Gibheer <gibheer@gmail.com> | 2012-10-05 08:12:34 +0200 |
---|---|---|
committer | Gibheer <gibheer@gmail.com> | 2012-10-05 08:12:34 +0200 |
commit | 609015b6fc7e5d7017ee47f7655137a3da7cb100 (patch) | |
tree | ad9c00d5bd432919359dfd1d3f1eda2a54117e76 | |
parent | f12ceef4a83c469214c96fca50946d5917401674 (diff) |
small changes to get it working
-rw-r--r-- | lib/zero/response.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/zero/response.rb b/lib/zero/response.rb index 0527b07..7515cea 100644 --- a/lib/zero/response.rb +++ b/lib/zero/response.rb @@ -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 |