Sha256: ce504b48bb2a63cf26cf2fa86d872518b928701f1182e13c6d05472be6fbb050

Contents?: true

Size: 648 Bytes

Versions: 31

Compression:

Stored size: 648 Bytes

Contents

module Braintree
  class VenmoAccount
    include BaseModule # :nodoc:

    attr_reader :customer_id, :username, :venmo_user_id, :token, :source_description, :subscriptions,
      :image_url, :default, :updated_at, :created_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

31 entries across 31 versions & 1 rubygems

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