Sha256: f8cd3bccd4ff1f3764b3aeab837d576d3f7880f5759725d8709b0884588eefff

Contents?: true

Size: 776 Bytes

Versions: 29

Compression:

Stored size: 776 Bytes

Contents

module Braintree
  class VenmoAccount
    include BaseModule # :nodoc:

    attr_reader :created_at
    attr_reader :customer_id
    attr_reader :default
    attr_reader :image_url
    attr_reader :source_description
    attr_reader :subscriptions
    attr_reader :token
    attr_reader :updated_at
    attr_reader :username
    attr_reader :venmo_user_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

    def default?
      @default
    end

    class << self
      protected :new
    end

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

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
braintree-3.3.0 lib/braintree/venmo_account.rb
braintree-3.2.0 lib/braintree/venmo_account.rb
braintree-3.1.0 lib/braintree/venmo_account.rb
braintree-3.0.1 lib/braintree/venmo_account.rb
braintree-2.104.1 lib/braintree/venmo_account.rb
braintree-2.104.0 lib/braintree/venmo_account.rb
braintree-2.103.0 lib/braintree/venmo_account.rb
braintree-2.102.0 lib/braintree/venmo_account.rb
braintree-2.101.0 lib/braintree/venmo_account.rb
braintree-2.100.0 lib/braintree/venmo_account.rb
braintree-2.99.0 lib/braintree/venmo_account.rb
braintree-2.98.0 lib/braintree/venmo_account.rb
braintree-2.97.0 lib/braintree/venmo_account.rb
braintree-2.96.0 lib/braintree/venmo_account.rb
braintree-2.95.0 lib/braintree/venmo_account.rb
braintree-2.94.0 lib/braintree/venmo_account.rb
braintree-2.93.0 lib/braintree/venmo_account.rb
braintree-2.92.0 lib/braintree/venmo_account.rb
braintree-2.91.0 lib/braintree/venmo_account.rb
braintree-2.90.0 lib/braintree/venmo_account.rb