Pardot/ruby-pardot — pull request #14 by drippdropp (2014-07-28 15:17:48+00:00)
Title: Support for Prospect Accounts

In the process of building a custom syncing solution for my company's proprietary CRM and Pardot, I found that I needed to use ProspectAccounts but the ruby-pardot API did not support this object yet, so here it is. We are currently using this code in our version successfully running Ruby v.2.0.0p353 and Ruby v.2.1.1.

Changes:
- Modified lib/ruby-pardot.rb to add require for new ProspectAccounts class.
- Modified lib/pardot/client.rb to add include for Objects::ProspectAccounts.
- Created new file lib/pardot/objects/prospect_accounts.rb which follows the format of Prospects for the most part, albeit directed towards ProspectAccounts. I verified the methods for ProspectAccounts via the Pardot API documentation.

Minor Differences:
- Used define_method to DRY the code.
- Used **options instead of options={} (note: double-splat support became available in Ruby 2.x, so for backwards compatibility, it may be preferable to use standard argument defaults instead of double-splat.)