QuickenParser

This is a quick’n’dirty gem to parse Quicken QFX format.

Given an input stream, or a file, this library will return Ruby structures representing the transactions, accounts and credit cards contained in the file / stream.

Example

accounts = QuickenParser.parse(STDIN)
accounts.length #=> 3
 = accounts.first
#=> <QuickenParser::Account ...>
.number     #=> "123456789012"
.currency   #=> "CAD"
.bank_id    #=> "900000100"
.transactions.length #=> 97
.transactions.timespan #=> Sun Aug 31, 2008..Sat Sep 13
.transactions.each do |transaction|
  transaction.type       #=> "DEBIT"
  transaction.amount     #=> <Money @cents=13209, @currency="CAD">
  transaction.timestamp  #=> Sun Aug 31, 2008 08:15 AM
  transaction.name       #=> "..."
  transaction.memo       #=> "..."
  transaction.id         #=> "932374"
end