Class: Network::Client::Response
- Inherits:
-
Struct
- Object
- Struct
- Network::Client::Response
- Defined in:
- lib/network/client.rb
Overview
The success response template.
Represents the return of rest-like methods holding two values: HTTP response code, and body (parsed as json if request type is json).
Instance Attribute Summary collapse
-
#body ⇒ Object
Returns the value of attribute body.
-
#code ⇒ Object
Returns the value of attribute code.
Instance Attribute Details
#body ⇒ Object
Returns the value of attribute body
18 19 20 |
# File 'lib/network/client.rb', line 18 def body @body end |
#code ⇒ Object
Returns the value of attribute code
18 19 20 |
# File 'lib/network/client.rb', line 18 def code @code end |