Class: Yodlee::Account
- Inherits:
-
Object
- Object
- Yodlee::Account
- Defined in:
- lib/yodlee/account.rb
Instance Attribute Summary collapse
-
#account_info ⇒ Object
Returns the value of attribute account_info.
-
#id ⇒ Object
Returns the value of attribute id.
-
#institute_id ⇒ Object
Returns the value of attribute institute_id.
-
#institute_name ⇒ Object
Returns the value of attribute institute_name.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(connection) ⇒ Account
constructor
A new instance of Account.
- #to_s ⇒ Object
- #transactions ⇒ Object
Constructor Details
#initialize(connection) ⇒ Account
Returns a new instance of Account.
5 6 7 8 |
# File 'lib/yodlee/account.rb', line 5 def initialize(connection) @connection = connection @account_info, @transactions = nil end |
Instance Attribute Details
#account_info ⇒ Object
Returns the value of attribute account_info.
3 4 5 |
# File 'lib/yodlee/account.rb', line 3 def account_info @account_info end |
#id ⇒ Object
Returns the value of attribute id.
3 4 5 |
# File 'lib/yodlee/account.rb', line 3 def id @id end |
#institute_id ⇒ Object
Returns the value of attribute institute_id.
3 4 5 |
# File 'lib/yodlee/account.rb', line 3 def institute_id @institute_id end |
#institute_name ⇒ Object
Returns the value of attribute institute_name.
3 4 5 |
# File 'lib/yodlee/account.rb', line 3 def institute_name @institute_name end |
#name ⇒ Object
Returns the value of attribute name.
3 4 5 |
# File 'lib/yodlee/account.rb', line 3 def name @name end |
Instance Method Details
#to_s ⇒ Object
22 23 24 |
# File 'lib/yodlee/account.rb', line 22 def to_s "#{@institute_name} - #{@name}" end |
#transactions ⇒ Object
17 18 19 20 |
# File 'lib/yodlee/account.rb', line 17 def transactions return @transactions if @transactions @transactions = @connection.transactions(self) end |