Class: RestClientWrapper::Response
- Inherits:
-
Object
- Object
- RestClientWrapper::Response
- Defined in:
- lib/rest_client_wrapper/response.rb
Overview
Response
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#headers ⇒ Object
readonly
Returns the value of attribute headers.
Instance Method Summary collapse
-
#initialize(headers, body, code) ⇒ Response
constructor
A new instance of Response.
Constructor Details
#initialize(headers, body, code) ⇒ Response
Returns a new instance of Response.
26 27 28 29 30 |
# File 'lib/rest_client_wrapper/response.rb', line 26 def initialize(headers, body, code) @headers = headers @body = body @code = code end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
24 25 26 |
# File 'lib/rest_client_wrapper/response.rb', line 24 def body @body end |
#code ⇒ Object (readonly)
Returns the value of attribute code.
24 25 26 |
# File 'lib/rest_client_wrapper/response.rb', line 24 def code @code end |
#headers ⇒ Object (readonly)
Returns the value of attribute headers.
24 25 26 |
# File 'lib/rest_client_wrapper/response.rb', line 24 def headers @headers end |