Sha256: 71ba5b3888a82e8cff3bce807f0e62b7322680aba120c0d6627111ec9e95e768
Contents?: true
Size: 904 Bytes
Versions: 3
Compression:
Stored size: 904 Bytes
Contents
module Braintree class ApplePayCard include BaseModule # :nodoc: module CardType AmEx = "Apple Pay - American Express" Visa = "Apple Pay - Visa" MasterCard = "Apple Pay - MasterCard" All = constants.map { |c| const_get(c) } end attr_reader :token, :card_type, :last_4, :default, :image_url, :created_at, :updated_at, :subscriptions, :expiration_month, :expiration_year, :expired, :payment_instrument_name, :source_description def initialize(gateway, attributes) # :nodoc: @gateway = gateway set_instance_variables_from_hash(attributes) @subscriptions = (@subscriptions || []).map { |subscription_hash| Subscription._new(@gateway, subscription_hash) } end def default? @default end class << self protected :new end def self._new(*args) # :nodoc: self.new *args end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
braintree-2.48.1 | lib/braintree/apple_pay_card.rb |
braintree-2.48.0 | lib/braintree/apple_pay_card.rb |
braintree-2.47.0 | lib/braintree/apple_pay_card.rb |