Exception: ActiveMerchant::Billing::FirstData::Gateway::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.



23
24
25
26
# File 'lib/active_merchant/billing/first_data/gateway.rb', line 23

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

Instance Attribute Details

#responseObject (readonly)

Returns the value of attribute response.



21
22
23
# File 'lib/active_merchant/billing/first_data/gateway.rb', line 21

def response
  @response
end