Exception: ActiveMerchant::Billing::FirstDataGateway::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/active_merchant/billing/first_data_gateway.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(response, msg = nil) ⇒ Error

Returns a new instance of Error.



61
62
63
64
# File 'lib/active_merchant/billing/first_data_gateway.rb', line 61

def initialize(response, msg=nil)
  @response = response
  super(msg || response[:error])
end

Instance Attribute Details

#responseObject (readonly)

Returns the value of attribute response.



59
60
61
# File 'lib/active_merchant/billing/first_data_gateway.rb', line 59

def response
  @response
end