Sha256: 415b5c45becb304b41e50fe9116453d8be139f49aeebd6a7831a7676cc15bb5e

Contents?: true

Size: 777 Bytes

Versions: 17

Compression:

Stored size: 777 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

17 entries across 17 versions & 1 rubygems

Version Path
braintree-4.15.0 lib/braintree/venmo_account.rb
braintree-4.14.0 lib/braintree/venmo_account.rb
braintree-4.13.0 lib/braintree/venmo_account.rb
braintree-4.12.0 lib/braintree/venmo_account.rb
braintree-4.11.0 lib/braintree/venmo_account.rb
braintree-4.10.0 lib/braintree/venmo_account.rb
braintree-4.9.0 lib/braintree/venmo_account.rb
braintree-4.8.0 lib/braintree/venmo_account.rb
braintree-4.7.0 lib/braintree/venmo_account.rb
braintree-4.6.0 lib/braintree/venmo_account.rb
braintree-4.5.0 lib/braintree/venmo_account.rb
braintree-4.4.0 lib/braintree/venmo_account.rb
braintree-4.3.0 lib/braintree/venmo_account.rb
braintree-4.2.0 lib/braintree/venmo_account.rb
braintree-4.1.0 lib/braintree/venmo_account.rb
braintree-4.0.0 lib/braintree/venmo_account.rb
braintree-3.4.0 lib/braintree/venmo_account.rb