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.64.0 lib/braintree/venmo_account.rb
braintree-2.63.0 lib/braintree/venmo_account.rb
braintree-2.62.0 lib/braintree/venmo_account.rb
braintree-2.61.1 lib/braintree/venmo_account.rb
braintree-2.61.0 lib/braintree/venmo_account.rb
braintree-2.60.0 lib/braintree/venmo_account.rb
braintree-2.59.0 lib/braintree/venmo_account.rb
braintree-2.58.0 lib/braintree/venmo_account.rb
braintree-2.57.0 lib/braintree/venmo_account.rb
braintree-2.56.0 lib/braintree/venmo_account.rb
braintree-2.55.0 lib/braintree/venmo_account.rb