Class: Yodlee::Account

Inherits:
Object
  • Object
show all
Defined in:
lib/yodlee/account.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_infoObject

Returns the value of attribute account_info.



3
4
5
# File 'lib/yodlee/account.rb', line 3

def 
  @account_info
end

#idObject

Returns the value of attribute id.



3
4
5
# File 'lib/yodlee/account.rb', line 3

def id
  @id
end

#institute_idObject

Returns the value of attribute institute_id.



3
4
5
# File 'lib/yodlee/account.rb', line 3

def institute_id
  @institute_id
end

#institute_nameObject

Returns the value of attribute institute_name.



3
4
5
# File 'lib/yodlee/account.rb', line 3

def institute_name
  @institute_name
end

#nameObject

Returns the value of attribute name.



3
4
5
# File 'lib/yodlee/account.rb', line 3

def name
  @name
end

Instance Method Details

#to_sObject



22
23
24
# File 'lib/yodlee/account.rb', line 22

def to_s
  "#{@institute_name} - #{@name}"
end

#transactionsObject



17
18
19
20
# File 'lib/yodlee/account.rb', line 17

def transactions
  return @transactions if @transactions
  @transactions = @connection.transactions(self)
end