Sha256: 6a062ab6c596cb8d0347f5c125b6197be5bbe24add87b2cd4f30101754b9bcf7
Contents?: true
Size: 590 Bytes
Versions: 14
Compression:
Stored size: 590 Bytes
Contents
module Spreedly class Store < Transaction attr_reader :payment_method, :basis_payment_method, :response def initialize(xml_doc) super payment_method_xml_doc = xml_doc.at_xpath('.//payment_method') @payment_method = payment_method_xml_doc ? PaymentMethod.new_from(xml_doc.at_xpath('.//payment_method')) : nil @basis_payment_method = PaymentMethod.new_from(xml_doc.at_xpath('.//basis_payment_method')) response_xml_doc = xml_doc.at_xpath('.//response') @response = response_xml_doc ? Response.new(response_xml_doc) : nil end end end
Version data entries
14 entries across 14 versions & 1 rubygems