Class: Braintree::VenmoAccount
- Inherits:
-
Object
- Object
- Braintree::VenmoAccount
- Includes:
- BaseModule
- Defined in:
- lib/braintree/venmo_account.rb
Instance Attribute Summary collapse
-
#created_at ⇒ Object
readonly
Returns the value of attribute created_at.
-
#customer_id ⇒ Object
readonly
Returns the value of attribute customer_id.
-
#default ⇒ Object
readonly
Returns the value of attribute default.
-
#image_url ⇒ Object
readonly
Returns the value of attribute image_url.
-
#source_description ⇒ Object
readonly
Returns the value of attribute source_description.
-
#subscriptions ⇒ Object
readonly
Returns the value of attribute subscriptions.
-
#token ⇒ Object
readonly
Returns the value of attribute token.
-
#updated_at ⇒ Object
readonly
Returns the value of attribute updated_at.
-
#username ⇒ Object
readonly
Returns the value of attribute username.
-
#venmo_user_id ⇒ Object
readonly
Returns the value of attribute venmo_user_id.
Class Method Summary collapse
Instance Method Summary collapse
- #default? ⇒ Boolean
-
#initialize(gateway, attributes) ⇒ VenmoAccount
constructor
A new instance of VenmoAccount.
Methods included from BaseModule
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
Returns a new instance of VenmoAccount.
16 17 18 19 20 |
# File 'lib/braintree/venmo_account.rb', line 16 def initialize(gateway, attributes) @gateway = gateway set_instance_variables_from_hash(attributes) @subscriptions = (@subscriptions || []).map { |subscription_hash| Subscription._new(@gateway, subscription_hash) } end |
Instance Attribute Details
#created_at ⇒ Object (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_id ⇒ Object (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 |
#default ⇒ Object (readonly)
Returns the value of attribute default.
7 8 9 |
# File 'lib/braintree/venmo_account.rb', line 7 def default @default end |
#image_url ⇒ Object (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_description ⇒ Object (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 |
#subscriptions ⇒ Object (readonly)
Returns the value of attribute subscriptions.
10 11 12 |
# File 'lib/braintree/venmo_account.rb', line 10 def subscriptions @subscriptions end |
#token ⇒ Object (readonly)
Returns the value of attribute token.
11 12 13 |
# File 'lib/braintree/venmo_account.rb', line 11 def token @token end |
#updated_at ⇒ Object (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 |
#username ⇒ Object (readonly)
Returns the value of attribute username.
13 14 15 |
# File 'lib/braintree/venmo_account.rb', line 13 def username @username end |
#venmo_user_id ⇒ Object (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
30 31 32 |
# File 'lib/braintree/venmo_account.rb', line 30 def self._new(*args) self.new(*args) end |
Instance Method Details
#default? ⇒ Boolean
22 23 24 |
# File 'lib/braintree/venmo_account.rb', line 22 def default? @default end |