Class: SpreedlyCore::RedactTransaction

Inherits:
Transaction show all
Defined in:
lib/spreedly_core/transactions.rb

Instance Attribute Summary collapse

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

Methods inherited from Transaction

find, handles

Methods inherited from Base

configure, gateway_token, login, verify_get, verify_options, verify_post, verify_put, verify_request

Constructor Details

#initialize(attrs = {}) ⇒ RedactTransaction

Returns a new instance of RedactTransaction.



41
42
43
44
# File 'lib/spreedly_core/transactions.rb', line 41

def initialize(attrs={})
  @payment_method = PaymentMethod.new(attrs.delete("payment_method") || {})
  super(attrs)
end

Instance Attribute Details

#payment_methodObject (readonly)

Returns the value of attribute payment_method.



39
40
41
# File 'lib/spreedly_core/transactions.rb', line 39

def payment_method
  @payment_method
end