Class: Spreedly::GatewayTransaction

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

Direct Known Subclasses

AuthPurchase, Capture, Refund, Void

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) ⇒ GatewayTransaction

Returns a new instance of GatewayTransaction.



11
12
13
14
# File 'lib/spreedly/transactions/gateway_transaction.rb', line 11

def initialize(xml_doc)
  super
  @response = Response.new(xml_doc.at_xpath('.//response'))
end

Instance Attribute Details

#responseObject (readonly)

Returns the value of attribute response.



9
10
11
# File 'lib/spreedly/transactions/gateway_transaction.rb', line 9

def response
  @response
end