diff options
author | Stormwind <stormwind@stormwinds-page.de> | 2012-11-17 14:46:53 +0100 |
---|---|---|
committer | Stormwind <stormwind@stormwinds-page.de> | 2012-11-17 14:46:53 +0100 |
commit | a76b08fbb335dd0553d775109e7b7a3dd9ad171e (patch) | |
tree | db4bcb3a5f8683d03f407f6f6953157f31560a26 /lib | |
parent | 633d5fb7c808cf6672cc5ab355edff5cb5e95acc (diff) |
Add default value to status code
Diffstat (limited to 'lib')
-rw-r--r-- | lib/zero/response.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/zero/response.rb b/lib/zero/response.rb index 3c54c54..26e03fb 100644 --- a/lib/zero/response.rb +++ b/lib/zero/response.rb @@ -6,6 +6,13 @@ module Zero attr_reader :status attr_accessor :header, :body + # Construtor + # Sets default status code to 200. + # + def initialize + @status = 200 + end + # Sets the status. # Also converts every input directly to an integer # |