Sha256: a6a2d4fa80ee0486183de13d6d50393e2bff1d763599d16e16f26cb9eb7304b4

Contents?: true

Size: 1.07 KB

Versions: 20

Compression:

Stored size: 1.07 KB

Contents

module Braintree
  class AndroidPayCard
    include BaseModule # :nodoc:

    attr_reader :bin
    attr_reader :created_at
    attr_reader :customer_id
    attr_reader :default
    attr_reader :expiration_month
    attr_reader :expiration_year
    attr_reader :google_transaction_id
    attr_reader :image_url
    attr_reader :source_card_last_4
    attr_reader :source_card_type
    attr_reader :source_description
    attr_reader :subscriptions
    attr_reader :token
    attr_reader :updated_at
    attr_reader :virtual_card_last_4
    attr_reader :virtual_card_type

    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 card_type
      virtual_card_type
    end

    def last_4
      virtual_card_last_4
    end

    class << self
      protected :new
    end

    def self._new(*args) # :nodoc:
      self.new *args
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
braintree-2.100.0 lib/braintree/android_pay_card.rb
braintree-2.99.0 lib/braintree/android_pay_card.rb
braintree-2.98.0 lib/braintree/android_pay_card.rb
braintree-2.97.0 lib/braintree/android_pay_card.rb
braintree-2.96.0 lib/braintree/android_pay_card.rb
braintree-2.95.0 lib/braintree/android_pay_card.rb
braintree-2.94.0 lib/braintree/android_pay_card.rb
braintree-2.93.0 lib/braintree/android_pay_card.rb
braintree-2.92.0 lib/braintree/android_pay_card.rb
braintree-2.91.0 lib/braintree/android_pay_card.rb
braintree-2.90.0 lib/braintree/android_pay_card.rb
braintree-2.89.0 lib/braintree/android_pay_card.rb
braintree-2.88.0 lib/braintree/android_pay_card.rb
braintree-2.87.0 lib/braintree/android_pay_card.rb
braintree-2.86.0 lib/braintree/android_pay_card.rb
braintree-2.85.0 lib/braintree/android_pay_card.rb
braintree-2.84.0 lib/braintree/android_pay_card.rb
braintree-2.83.0 lib/braintree/android_pay_card.rb
braintree-2.82.0 lib/braintree/android_pay_card.rb
braintree-2.81.0 lib/braintree/android_pay_card.rb