Class: Pokepay::Response::Response
- Inherits:
-
Net::HTTPResponse
- Object
- Net::HTTPResponse
- Pokepay::Response::Response
- Defined in:
- lib/pokepay_partner_ruby_sdk/response/response.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#header ⇒ Object
readonly
Returns the value of attribute header.
-
#http_version ⇒ Object
readonly
Returns the value of attribute http_version.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
-
#object ⇒ Object
readonly
Returns the value of attribute object.
Instance Method Summary collapse
-
#initialize(response, object) ⇒ Response
constructor
A new instance of Response.
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. end |
Instance Attribute Details
#body ⇒ Object (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 |
#code ⇒ Object (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 |
#header ⇒ Object (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_version ⇒ Object (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 |
#message ⇒ Object (readonly)
Returns the value of attribute message.
18 19 20 |
# File 'lib/pokepay_partner_ruby_sdk/response/response.rb', line 18 def @message end |
#object ⇒ Object (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 |