Sha256: 7b86b3f02a418a8d9fef7ffe1d5e2287a83b437e4831cfae0bf762c4723f6915
Contents?: true
Size: 964 Bytes
Versions: 5
Compression:
Stored size: 964 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 :bin, :card_type, :created_at, :customer_id, :default, :expiration_month, :expiration_year, :expired, :image_url, :last_4, :payment_instrument_name, :source_description, :subscriptions, :token, :updated_at 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 def expired? @expired end class << self protected :new end def self._new(*args) # :nodoc: self.new *args end end end
Version data entries
5 entries across 5 versions & 1 rubygems