Class: Maxmind::ChargebackResponse
- Inherits:
-
Object
- Object
- Maxmind::ChargebackResponse
- Defined in:
- lib/maxmind/chargeback_response.rb
Instance Attribute Summary collapse
-
#attributes ⇒ Object
Returns the value of attribute attributes.
-
#http_code ⇒ Object
readonly
Returns the value of attribute http_code.
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(response = nil, http_code = nil) ⇒ ChargebackResponse
constructor
A new instance of ChargebackResponse.
Constructor Details
#initialize(response = nil, http_code = nil) ⇒ ChargebackResponse
Returns a new instance of ChargebackResponse.
6 7 8 9 10 |
# File 'lib/maxmind/chargeback_response.rb', line 6 def initialize(response = nil, http_code = nil) raise ArgumentError, 'Missing response string' unless response @response = response @http_code = http_code.to_i if http_code end |
Instance Attribute Details
#attributes ⇒ Object
Returns the value of attribute attributes.
3 4 5 |
# File 'lib/maxmind/chargeback_response.rb', line 3 def attributes @attributes end |
#http_code ⇒ Object (readonly)
Returns the value of attribute http_code.
4 5 6 |
# File 'lib/maxmind/chargeback_response.rb', line 4 def http_code @http_code end |
#response ⇒ Object (readonly)
Returns the value of attribute response.
4 5 6 |
# File 'lib/maxmind/chargeback_response.rb', line 4 def response @response end |