Exception: ActiveMerchant::Billing::BalancedGateway::Error

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

Direct Known Subclasses

CardDeclined

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(response, msg = nil) ⇒ Error

Returns a new instance of Error.



75
76
77
78
# File 'lib/active_merchant/billing/gateways/balanced.rb', line 75

def initialize(response, msg=nil)
  @response = response
  super(msg || response['description'])
end

Instance Attribute Details

#responseObject (readonly)

Returns the value of attribute response.



73
74
75
# File 'lib/active_merchant/billing/gateways/balanced.rb', line 73

def response
  @response
end