Class: Braintree::VenmoAccount

Inherits:
Object
  • Object
show all
Includes:
BaseModule
Defined in:
lib/braintree/venmo_account.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods included from BaseModule

included

Methods included from BaseModule::Methods

#copy_instance_variables_from_object, #return_object_or_raise, #set_instance_variables_from_hash, #singleton_class

Constructor Details

#initialize(gateway, attributes) ⇒ VenmoAccount

:nodoc:


16
17
18
19
20
# File 'lib/braintree/venmo_account.rb', line 16

def initialize(gateway, attributes) # :nodoc:
  @gateway = gateway
  set_instance_variables_from_hash(attributes)
  @subscriptions = (@subscriptions || []).map { |subscription_hash| Subscription._new(@gateway, subscription_hash) }
end

Instance Attribute Details

#created_atObject (readonly)

Returns the value of attribute created_at.


5
6
7
# File 'lib/braintree/venmo_account.rb', line 5

def created_at
  @created_at
end

#customer_idObject (readonly)

Returns the value of attribute customer_id.


6
7
8
# File 'lib/braintree/venmo_account.rb', line 6

def customer_id
  @customer_id
end

#defaultObject (readonly)

Returns the value of attribute default.


7
8
9
# File 'lib/braintree/venmo_account.rb', line 7

def default
  @default
end

#image_urlObject (readonly)

Returns the value of attribute image_url.


8
9
10
# File 'lib/braintree/venmo_account.rb', line 8

def image_url
  @image_url
end

#source_descriptionObject (readonly)

Returns the value of attribute source_description.


9
10
11
# File 'lib/braintree/venmo_account.rb', line 9

def source_description
  @source_description
end

#subscriptionsObject (readonly)

Returns the value of attribute subscriptions.


10
11
12
# File 'lib/braintree/venmo_account.rb', line 10

def subscriptions
  @subscriptions
end

#tokenObject (readonly)

Returns the value of attribute token.


11
12
13
# File 'lib/braintree/venmo_account.rb', line 11

def token
  @token
end

#updated_atObject (readonly)

Returns the value of attribute updated_at.


12
13
14
# File 'lib/braintree/venmo_account.rb', line 12

def updated_at
  @updated_at
end

#usernameObject (readonly)

Returns the value of attribute username.


13
14
15
# File 'lib/braintree/venmo_account.rb', line 13

def username
  @username
end

#venmo_user_idObject (readonly)

Returns the value of attribute venmo_user_id.


14
15
16
# File 'lib/braintree/venmo_account.rb', line 14

def venmo_user_id
  @venmo_user_id
end

Class Method Details

._new(*args) ⇒ Object

:nodoc:


30
31
32
# File 'lib/braintree/venmo_account.rb', line 30

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

Instance Method Details

#default?Boolean

Returns:

  • (Boolean)

22
23
24
# File 'lib/braintree/venmo_account.rb', line 22

def default?
  @default
end