Sha256: c19cb975ade38fa5875f90addc85f1a09fb6fc3c9303ae6f26532ea26b5fa5d3

Contents?: true

Size: 563 Bytes

Versions: 3

Compression:

Stored size: 563 Bytes

Contents

module Braintree
  class CoinbaseAccount
    include BaseModule # :nodoc:

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
braintree-2.41.0 lib/braintree/coinbase_account.rb
braintree-2.40.0 lib/braintree/coinbase_account.rb
braintree-2.39.0 lib/braintree/coinbase_account.rb