Class: MyTargetApi::NetClient::Response
- Inherits:
-
Object
- Object
- MyTargetApi::NetClient::Response
- Defined in:
- lib/my_target_api/net_client.rb
Overview
NetClient 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(body, code, headers) ⇒ Response
constructor
A new instance of Response.
Constructor Details
#initialize(body, code, headers) ⇒ Response
Returns a new instance of Response.
13 14 15 16 17 |
# File 'lib/my_target_api/net_client.rb', line 13 def initialize(body, code, headers) @body = body @code = code @headers = headers end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
19 20 21 |
# File 'lib/my_target_api/net_client.rb', line 19 def body @body end |
#code ⇒ Object (readonly)
Returns the value of attribute code.
19 20 21 |
# File 'lib/my_target_api/net_client.rb', line 19 def code @code end |
#headers ⇒ Object (readonly)
Returns the value of attribute headers.
19 20 21 |
# File 'lib/my_target_api/net_client.rb', line 19 def headers @headers end |