Sha256: 5a684417a55d292879870c70f8a0da89946afa8105825964009b2b964cb46322

Contents?: true

Size: 733 Bytes

Versions: 32

Compression:

Stored size: 733 Bytes

Contents

module Braintree
  class AmexExpressCheckoutCard
    include BaseModule # :nodoc:

    attr_reader :bin, :card_member_expiry_date, :card_member_number, :card_type, :created_at, :customer_id, :default,
      :expiration_month, :expiration_year, :image_url, :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

    class << self
      protected :new
    end

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

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
braintree-2.80.1 lib/braintree/amex_express_checkout_card.rb
braintree-2.80.0 lib/braintree/amex_express_checkout_card.rb
braintree-2.79.0 lib/braintree/amex_express_checkout_card.rb
braintree-2.78.0 lib/braintree/amex_express_checkout_card.rb
braintree-2.77.0 lib/braintree/amex_express_checkout_card.rb
braintree-2.76.0 lib/braintree/amex_express_checkout_card.rb
braintree-2.75.0 lib/braintree/amex_express_checkout_card.rb
braintree-2.74.0 lib/braintree/amex_express_checkout_card.rb
braintree-2.73.0 lib/braintree/amex_express_checkout_card.rb
braintree-2.72.0 lib/braintree/amex_express_checkout_card.rb
braintree-2.71.0 lib/braintree/amex_express_checkout_card.rb
braintree-2.70.0 lib/braintree/amex_express_checkout_card.rb
braintree-2.69.1 lib/braintree/amex_express_checkout_card.rb
braintree-2.69.0 lib/braintree/amex_express_checkout_card.rb
braintree-2.68.2 lib/braintree/amex_express_checkout_card.rb
braintree-2.68.1 lib/braintree/amex_express_checkout_card.rb
braintree-2.68.0 lib/braintree/amex_express_checkout_card.rb
braintree-2.67.0 lib/braintree/amex_express_checkout_card.rb
braintree-2.66.0 lib/braintree/amex_express_checkout_card.rb
braintree-2.65.0 lib/braintree/amex_express_checkout_card.rb