From a76b08fbb335dd0553d775109e7b7a3dd9ad171e Mon Sep 17 00:00:00 2001 From: Stormwind Date: Sat, 17 Nov 2012 14:46:53 +0100 Subject: Add default value to status code --- lib/zero/response.rb | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'lib') 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 # -- cgit v1.2.3-70-g09d2