Method: QuickenParser::Parser#accounts

Defined in:
lib/quicken_parser/parser.rb

#accountsObject



20
21
22
23
24
25
26
27
28
29
30
31
32
# File 'lib/quicken_parser/parser.rb', line 20

def accounts
  return @account if @account
  @accounts = Array.new
  REXML::XPath.each(@doc.root, "//STMTRS") do |xml|
    @accounts << (xml)
  end

  REXML::XPath.each(@doc.root, "//CCSTMTRS") do |xml|
    @accounts << (xml)
  end

  @accounts
end