aasmith/ofx-parser — pull request #2 by jsmecham (2012-02-14 02:42:49+00:00)
Title: Support for multiple bank, credit accounts in a single OFX document

Currently, ofx-parser assumes that there will never be more than 1 credit card or bank account in an OFX document. However, for my uses this turns out to be quite common.

I've removed the bank_account and credit_card attributes that referenced the singular accounts and replaced them with a bank_accounts and credit_accounts accessor that will always return an array of accounts. For cases where there are indeed only one, that array would contain just the single account and would need to be accessed that way (i.e. credit_accounts.first).

Since this breaks API, I'm not quite sure what you'll want to do with this. I'd love to see it get merged in and I'd also like to refine a few other aspects of the project if you'd like the help.