USA Spending API Wrapper
NOTE: This is an unofficial ruby gem. The developer is not connected to USASpending.gov
Usage
Initialize the search s = USA::Procurement.new
Add the qualifiers s.detail(“b”).max_records(69).years(2009).state(“MO”)
Fetch the contracts, returns an array of contract objects s.fetch_contracts
Access a contract’s attributes contract = s.fetch_contracts.first contract.dollarsobligated