Class: Spreedly::Verification

Inherits:
GatewayTransaction show all
Defined in:
lib/spreedly/transactions/verification.rb

Instance Attribute Summary collapse

Attributes inherited from GatewayTransaction

#gateway_specific_fields, #gateway_specific_response_fields, #response, #shipping_address

Instance Method Summary collapse

Methods inherited from GatewayTransaction

#parse_gateway_fields

Methods inherited from Transaction

new_from, new_list_from

Methods included from Fields

#field_hash, included, #initialize_fields

Constructor Details

#initialize(xml_doc) ⇒ Verification

Returns a new instance of Verification.



6
7
8
9
# File 'lib/spreedly/transactions/verification.rb', line 6

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.



4
5
6
# File 'lib/spreedly/transactions/verification.rb', line 4

def payment_method
  @payment_method
end