Exception: FlexCommerce::PaypalExpress::Exception::Transaction

Inherits:
StandardError
  • Object
show all
Defined in:
lib/paypal_express/exception/transaction.rb

Direct Known Subclasses

AccessDenied, ConnectionError, NotAuthorized

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, options = {}) ⇒ Transaction

Returns a new instance of Transaction.



6
7
8
9
10
11
# File 'lib/paypal_express/exception/transaction.rb', line 6

def initialize(message, options = {})
  options.each_pair do |attr, value|
    try("#{attr}=".to_sym, value)
  end
  super(message)
end

Instance Attribute Details

#gateway_transaction_idObject

Returns the value of attribute gateway_transaction_id.



5
6
7
# File 'lib/paypal_express/exception/transaction.rb', line 5

def gateway_transaction_id
  @gateway_transaction_id
end

#responseObject

Returns the value of attribute response.



5
6
7
# File 'lib/paypal_express/exception/transaction.rb', line 5

def response
  @response
end

#transaction_idObject

Returns the value of attribute transaction_id.



5
6
7
# File 'lib/paypal_express/exception/transaction.rb', line 5

def transaction_id
  @transaction_id
end