Class: Spreedly::RedactGateway

Inherits:
Transaction show all
Defined in:
lib/spreedly/transactions/redact_gateway.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) ⇒ RedactGateway


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

def initialize(xml_doc)
  super
  @gateway = Gateway.new(xml_doc.at_xpath('.//gateway'))
end

Instance Attribute Details

#gatewayObject (readonly)

Returns the value of attribute gateway


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

def gateway
  @gateway
end