class Braintree::ApplePayCard
Attributes
Public Class Methods
Source
# File lib/braintree/apple_pay_card.rb, line 66 def self._new(*args) self.new(*args) end
Protected Class Methods
Source
# File lib/braintree/apple_pay_card.rb, line 47 def initialize(gateway, attributes) @gateway = gateway set_instance_variables_from_hash(attributes) @billing_address = attributes[:billing_address] ? Address._new(@gateway, attributes[:billing_address]) : nil @subscriptions = (@subscriptions || []).map { |subscription_hash| Subscription._new(@gateway, subscription_hash) } end