Class: Spreedly::RedactPaymentMethod

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Transaction

new_from, new_list_from

Methods included from Fields

#field_hash, included, #initialize_fields

Constructor Details

#initialize(xml_doc) ⇒ RedactPaymentMethod

Returns a new instance of RedactPaymentMethod.



7
8
9
10
# File 'lib/spreedly/transactions/redact_payment_method.rb', line 7

def initialize(xml_doc)
  super
  @payment_method = PaymentMethod.new_from(xml_doc.at_xpath('.//payment_method'))
end

Instance Attribute Details

#payment_methodObject (readonly)

Returns the value of attribute payment_method.



5
6
7
# File 'lib/spreedly/transactions/redact_payment_method.rb', line 5

def payment_method
  @payment_method
end