Class: Varejonline::Client::Response
- Inherits:
-
Object
- Object
- Varejonline::Client::Response
- Defined in:
- lib/varejonline/client.rb
Instance Attribute Summary collapse
-
#payload ⇒ Object
Returns the value of attribute payload.
-
#raw_response ⇒ Object
Returns the value of attribute raw_response.
-
#status ⇒ Object
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(response) ⇒ Response
constructor
A new instance of Response.
Constructor Details
#initialize(response) ⇒ Response
120 121 122 123 124 |
# File 'lib/varejonline/client.rb', line 120 def initialize(response) @status = response.code @payload = response.parsed_response @raw_response = response end |
Instance Attribute Details
#payload ⇒ Object
Returns the value of attribute payload.
118 119 120 |
# File 'lib/varejonline/client.rb', line 118 def payload @payload end |
#raw_response ⇒ Object
Returns the value of attribute raw_response.
118 119 120 |
# File 'lib/varejonline/client.rb', line 118 def raw_response @raw_response end |
#status ⇒ Object
Returns the value of attribute status.
118 119 120 |
# File 'lib/varejonline/client.rb', line 118 def status @status end |