Class: QuickenParser::Account
- Inherits:
-
Object
- Object
- QuickenParser::Account
- Defined in:
- lib/quicken_parser/account.rb
Instance Attribute Summary collapse
-
#bank_id ⇒ Object
Returns the value of attribute bank_id.
-
#currency ⇒ Object
Returns the value of attribute currency.
-
#number ⇒ Object
Returns the value of attribute number.
-
#transactions ⇒ Object
Returns the value of attribute transactions.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(args = {}) ⇒ Account
constructor
A new instance of Account.
- #to_s ⇒ Object
Constructor Details
#initialize(args = {}) ⇒ Account
Returns a new instance of Account.
5 6 7 8 9 10 |
# File 'lib/quicken_parser/account.rb', line 5 def initialize(args={}) args.each_pair do |key, value| send("#{key}=", value) end @transactions = Transactions.new end |
Instance Attribute Details
#bank_id ⇒ Object
Returns the value of attribute bank_id.
3 4 5 |
# File 'lib/quicken_parser/account.rb', line 3 def bank_id @bank_id end |
#currency ⇒ Object
Returns the value of attribute currency.
3 4 5 |
# File 'lib/quicken_parser/account.rb', line 3 def currency @currency end |
#number ⇒ Object
Returns the value of attribute number.
3 4 5 |
# File 'lib/quicken_parser/account.rb', line 3 def number @number end |
#transactions ⇒ Object
Returns the value of attribute transactions.
3 4 5 |
# File 'lib/quicken_parser/account.rb', line 3 def transactions @transactions end |
#type ⇒ Object
Returns the value of attribute type.
3 4 5 |
# File 'lib/quicken_parser/account.rb', line 3 def type @type end |
Instance Method Details
#to_s ⇒ Object
12 13 14 |
# File 'lib/quicken_parser/account.rb', line 12 def to_s "#{bank_id}:#{number}" end |