Class: Pokepay::Response::Response

Inherits:
Net::HTTPResponse
  • Object
show all
Defined in:
lib/pokepay_partner_ruby_sdk/response/response.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(response, object) ⇒ Response

Returns a new instance of Response.



5
6
7
8
9
10
11
12
# File 'lib/pokepay_partner_ruby_sdk/response/response.rb', line 5

def initialize(response, object)
  @body = response.body
  @object = object
  @code = response.code
  @header = response
  @http_version = response.http_version
  @message = response.message
end

Instance Attribute Details

#bodyObject (readonly)

Returns the value of attribute body.



13
14
15
# File 'lib/pokepay_partner_ruby_sdk/response/response.rb', line 13

def body
  @body
end

#codeObject (readonly)

Returns the value of attribute code.



15
16
17
# File 'lib/pokepay_partner_ruby_sdk/response/response.rb', line 15

def code
  @code
end

#headerObject (readonly)

Returns the value of attribute header.



16
17
18
# File 'lib/pokepay_partner_ruby_sdk/response/response.rb', line 16

def header
  @header
end

#http_versionObject (readonly)

Returns the value of attribute http_version.



17
18
19
# File 'lib/pokepay_partner_ruby_sdk/response/response.rb', line 17

def http_version
  @http_version
end

#messageObject (readonly)

Returns the value of attribute message.



18
19
20
# File 'lib/pokepay_partner_ruby_sdk/response/response.rb', line 18

def message
  @message
end

#objectObject (readonly)

Returns the value of attribute object.



14
15
16
# File 'lib/pokepay_partner_ruby_sdk/response/response.rb', line 14

def object
  @object
end