Class: GovKit::TransparencyData::Grant

Inherits:
GovKit::TransparencyDataResource show all
Defined in:
lib/gov_kit/transparency_data.rb

Overview

Represents government grants.

See transparencydata.com/api/grants/ for complete query options.

Instance Attribute Summary

Attributes inherited from Resource

#attributes, #raw_response

Class Method Summary collapse

Methods inherited from GovKit::TransparencyDataResource

from_response, search_for

Methods inherited from Resource

#initialize, instantiate, instantiate_collection, parse, #to_md5, #unload

Constructor Details

This class inherits a constructor from GovKit::Resource

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class GovKit::Resource

Class Method Details

.search(ops = {}) ⇒ Object

Search for lobbying records.

Example query:

grants = GovKit::TransparencyData::Grant.search( { :per_page => 2, :recipient_type => '00' } )


117
118
119
# File 'lib/gov_kit/transparency_data.rb', line 117

def self.search(ops = {})
  search_for('/grants.json', ops)
end