Class: Helpful::HttpClient::Response
- Inherits:
-
Object
- Object
- Helpful::HttpClient::Response
- Defined in:
- lib/helpful/http_client/response.rb
Overview
Response object contains the response returned by the client
Instance Attribute Summary collapse
-
#body ⇒ Object
Returns the value of attribute body.
-
#code ⇒ Object
Returns the value of attribute code.
-
#headers ⇒ Object
Returns the value of attribute headers.
Instance Method Summary collapse
-
#initialize(body, code, headers) ⇒ Response
constructor
A new instance of Response.
Constructor Details
#initialize(body, code, headers) ⇒ Response
Returns a new instance of Response.
10 11 12 13 14 |
# File 'lib/helpful/http_client/response.rb', line 10 def initialize(body, code, headers) @body = body @code = code @headers = headers end |
Instance Attribute Details
#body ⇒ Object
Returns the value of attribute body.
8 9 10 |
# File 'lib/helpful/http_client/response.rb', line 8 def body @body end |
#code ⇒ Object
Returns the value of attribute code.
8 9 10 |
# File 'lib/helpful/http_client/response.rb', line 8 def code @code end |
#headers ⇒ Object
Returns the value of attribute headers.
8 9 10 |
# File 'lib/helpful/http_client/response.rb', line 8 def headers @headers end |