Class: Chespirito::Response
- Inherits:
-
Object
- Object
- Chespirito::Response
- Defined in:
- lib/chespirito/response.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
Returns the value of attribute body.
-
#headers ⇒ Object
Returns the value of attribute headers.
-
#status ⇒ Object
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize ⇒ Response
constructor
A new instance of Response.
Constructor Details
#initialize ⇒ Response
Returns a new instance of Response.
7 8 9 10 11 |
# File 'lib/chespirito/response.rb', line 7 def initialize @status = nil @headers = {} @body = '' end |
Instance Attribute Details
#body ⇒ Object
Returns the value of attribute body.
5 6 7 |
# File 'lib/chespirito/response.rb', line 5 def body @body end |
#headers ⇒ Object
Returns the value of attribute headers.
5 6 7 |
# File 'lib/chespirito/response.rb', line 5 def headers @headers end |
#status ⇒ Object
Returns the value of attribute status.
5 6 7 |
# File 'lib/chespirito/response.rb', line 5 def status @status end |