Class: SpreedlyCore::RetainTransaction
- Inherits:
-
Transaction
- Object
- Base
- Transaction
- SpreedlyCore::RetainTransaction
- Defined in:
- lib/spreedly_core/transactions.rb
Instance Attribute Summary collapse
-
#payment_method ⇒ Object
readonly
Returns the value of attribute payment_method.
Attributes inherited from Transaction
#amount, #created_at, #currency_code, #gateway_token, #message, #on_test_gateway, #response, #succeeded, #token, #transaction_type, #updated_at
Instance Method Summary collapse
-
#initialize(attrs = {}) ⇒ RetainTransaction
constructor
A new instance of RetainTransaction.
Methods inherited from Transaction
Methods inherited from Base
configure, gateway_token, login, verify_get, verify_options, verify_post, verify_put, verify_request
Constructor Details
#initialize(attrs = {}) ⇒ RetainTransaction
Returns a new instance of RetainTransaction.
31 32 33 34 |
# File 'lib/spreedly_core/transactions.rb', line 31 def initialize(attrs={}) @payment_method = PaymentMethod.new(attrs.delete("payment_method") || {}) super(attrs) end |
Instance Attribute Details
#payment_method ⇒ Object (readonly)
Returns the value of attribute payment_method.
29 30 31 |
# File 'lib/spreedly_core/transactions.rb', line 29 def payment_method @payment_method end |