Sha256: b99ebb40c8ad8dc75b71d5ba73f6bf6943b717b86f457fb5162410cc2d01c69f
Contents?: true
Size: 842 Bytes
Versions: 1
Compression:
Stored size: 842 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 def initialize(gateway, attributes) # :nodoc: @gateway = gateway set_instance_variables_from_hash(attributes) @subscriptions = (@subscriptions || []).map { |subscription_hash| Subscription._new(@gateway, subscription_hash) } end class << self protected :new end def self._new(*args) # :nodoc: self.new *args end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
braintree-2.41.0 | lib/braintree/apple_pay_card.rb |