class Spreedly::DeliverPaymentMethod
Attributes
payment_method[R]
receiver[R]
response[R]
Public Class Methods
new(xml_doc)
click to toggle source
Calls superclass method
# File lib/spreedly/transactions/deliver_payment_method.rb, line 9 def initialize(xml_doc) super @payment_method = PaymentMethod.new_from(xml_doc.at_xpath('.//payment_method')) @receiver = Receiver.new(xml_doc.at_xpath('.//receiver')) response_xml_doc = xml_doc.at_xpath('.//response') @response = response_xml_doc ? DeliverPaymentResponse.new(response_xml_doc) : nil end