Sha256: 3e7761a6c488f31695345b9b27a5074b4ee8e6773192edbba1514d600852c132

Contents?: true

Size: 747 Bytes

Versions: 11

Compression:

Stored size: 747 Bytes

Contents

module Braintree
  class VenmoAccount
    include BaseModule

    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)
      @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)
      self.new(*args)
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
braintree-4.26.0 lib/braintree/venmo_account.rb
braintree-4.25.0 lib/braintree/venmo_account.rb
braintree-4.24.0 lib/braintree/venmo_account.rb
braintree-4.23.0 lib/braintree/venmo_account.rb
braintree-4.22.0 lib/braintree/venmo_account.rb
braintree-4.21.0 lib/braintree/venmo_account.rb
braintree-4.20.0 lib/braintree/venmo_account.rb
braintree-4.19.0 lib/braintree/venmo_account.rb
braintree-4.18.0 lib/braintree/venmo_account.rb
braintree-4.17.0 lib/braintree/venmo_account.rb
braintree-4.16.0 lib/braintree/venmo_account.rb