Sha256: b29c2028ec96b48493dfebb6e04f50ee62b54a0f14939a7580ff2381fa09d191

Contents?: true

Size: 704 Bytes

Versions: 34

Compression:

Stored size: 704 Bytes

Contents

module Braintree
  class CoinbaseAccount
    include BaseModule # :nodoc:

    attr_reader :token, :user_id, :user_email, :user_name, :subscriptions, :created_at, :updated_at, :default, :customer_id
    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

    # Returns true if this coinbase account is the customer's default payment method.
    def default?
      @default
    end
  end
end

Version data entries

34 entries across 34 versions & 1 rubygems

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