diff options
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 # |