Sha256: 9f542c9cd98fa5f8ebf0122afd8c5e8edada4ea1baa35ab8be4ad12fc8fdac9d
Contents?: true
Size: 883 Bytes
Versions: 5
Compression:
Stored size: 883 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 def default? @default 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