neovintage/zoho_invoice — pull request #5 by mattbradley (2013-04-29 07:32:19+00:00)
Title: Added more methods for retrieving invoices and customers.

The biggest change is the extraction of the code that retrieves and hydrates invoices into a separate method on `ZohoInvoice::Base`. This code will almost always be the same for every resource (invoices, customers, etc.); only the API endpoint is different. Also, I noticed the current retrieval methods would fail to return all results if the response spanned across multiple pages. So, I added code to repeat the API call for each page and collect all the results.

Retrieval methods added:
* `ZohoInvoice::Invoice.all`
* `ZohoInvoice::Customer.all`
* `ZohoInvoice::Customer.all_active`
* `ZohoInvoice::Customer.all_inactive`

I've added tests for everything, and they should be passing.