Class: Spreedly::AuthPurchase
- Inherits:
-
GatewayTransaction
- Object
- Model
- Transaction
- GatewayTransaction
- Spreedly::AuthPurchase
- Defined in:
- lib/spreedly/transactions/auth_purchase.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#payment_method ⇒ Object
readonly
Returns the value of attribute payment_method.
Attributes inherited from GatewayTransaction
#gateway_specific_fields, #gateway_specific_response_fields, #response, #shipping_address
Instance Method Summary collapse
-
#initialize(xml_doc) ⇒ AuthPurchase
constructor
A new instance of AuthPurchase.
Methods inherited from GatewayTransaction
Methods inherited from Transaction
Methods included from Fields
#field_hash, included, #initialize_fields
Constructor Details
#initialize(xml_doc) ⇒ AuthPurchase
Returns a new instance of AuthPurchase.
10 11 12 13 |
# File 'lib/spreedly/transactions/auth_purchase.rb', line 10 def initialize(xml_doc) super @payment_method = PaymentMethod.new_from(xml_doc.at_xpath('.//payment_method')) end |
Instance Attribute Details
#payment_method ⇒ Object (readonly)
Returns the value of attribute payment_method.
8 9 10 |
# File 'lib/spreedly/transactions/auth_purchase.rb', line 8 def payment_method @payment_method end |