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