Class: QuickenParser::Account

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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_idObject

Returns the value of attribute bank_id.



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

def bank_id
  @bank_id
end

#currencyObject

Returns the value of attribute currency.



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

def currency
  @currency
end

#numberObject

Returns the value of attribute number.



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

def number
  @number
end

#transactionsObject

Returns the value of attribute transactions.



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

def transactions
  @transactions
end

#typeObject

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_sObject



12
13
14
# File 'lib/quicken_parser/account.rb', line 12

def to_s
  "#{bank_id}:#{number}"
end