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

Returns a new instance of Response.



127
128
129
130
131
# File 'lib/varejonline/client.rb', line 127

def initialize(response)
  @status = response.code
  @payload = response.parsed_response
  @raw_response = response
end

Instance Attribute Details

#payloadObject

Returns the value of attribute payload.



125
126
127
# File 'lib/varejonline/client.rb', line 125

def payload
  @payload
end

#raw_responseObject

Returns the value of attribute raw_response.



125
126
127
# File 'lib/varejonline/client.rb', line 125

def raw_response
  @raw_response
end

#statusObject

Returns the value of attribute status.



125
126
127
# File 'lib/varejonline/client.rb', line 125

def status
  @status
end