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