Class: Varejonline::Client::Response

Inherits:
Object
  • Object
show all
Defined in:
lib/varejonline/client.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#payloadObject

Returns the value of attribute payload.



118
119
120
# File 'lib/varejonline/client.rb', line 118

def payload
  @payload
end

#raw_responseObject

Returns the value of attribute raw_response.



118
119
120
# File 'lib/varejonline/client.rb', line 118

def raw_response
  @raw_response
end

#statusObject

Returns the value of attribute status.



118
119
120
# File 'lib/varejonline/client.rb', line 118

def status
  @status
end