Class: Maxmind::ChargebackResponse

Inherits:
Object
  • Object
show all
Defined in:
lib/maxmind/chargeback_response.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(response = nil, http_code = nil) ⇒ ChargebackResponse

Returns a new instance of ChargebackResponse.

Raises:

  • (ArgumentError)

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

#attributesObject

Returns the value of attribute attributes.


3
4
5
# File 'lib/maxmind/chargeback_response.rb', line 3

def attributes
  @attributes
end

#http_codeObject (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

#responseObject (readonly)

Returns the value of attribute response.


4
5
6
# File 'lib/maxmind/chargeback_response.rb', line 4

def response
  @response
end