Class: GiantClient::Response
- Inherits:
-
Object
- Object
- GiantClient::Response
- Defined in:
- lib/giant_client/response.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
Returns the value of attribute body.
-
#headers ⇒ Object
Returns the value of attribute headers.
-
#status_code ⇒ Object
Returns the value of attribute status_code.
Instance Method Summary collapse
-
#initialize(status_code, headers, body) ⇒ Response
constructor
A new instance of Response.
Constructor Details
#initialize(status_code, headers, body) ⇒ Response
Returns a new instance of Response.
5 6 7 8 9 |
# File 'lib/giant_client/response.rb', line 5 def initialize(status_code, headers, body) @status_code = status_code @headers = headers @body = body end |
Instance Attribute Details
#body ⇒ Object
Returns the value of attribute body.
3 4 5 |
# File 'lib/giant_client/response.rb', line 3 def body @body end |
#headers ⇒ Object
Returns the value of attribute headers.
3 4 5 |
# File 'lib/giant_client/response.rb', line 3 def headers @headers end |
#status_code ⇒ Object
Returns the value of attribute status_code.
3 4 5 |
# File 'lib/giant_client/response.rb', line 3 def status_code @status_code end |