Class: GovKit::OpenStates::Committee
- Inherits:
-
GovKit::OpenStatesResource
- Object
- Resource
- GovKit::OpenStatesResource
- GovKit::OpenStates::Committee
- Defined in:
- lib/gov_kit/open_states.rb
Overview
The Committee class represents the committee data returned from Open States.
For details about fields returned, see the Open States documentation, at openstates.sunlightlabs.com/api/committees/,
Instance Attribute Summary
Attributes inherited from Resource
Class Method Summary collapse
Methods inherited from GovKit::OpenStatesResource
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
.find(committee_id) ⇒ Object
99 100 101 |
# File 'lib/gov_kit/open_states.rb', line 99 def self.find(committee_id) get_uri("/committees/#{committee_id}/") end |
.search(options = {}) ⇒ Object
103 104 105 |
# File 'lib/gov_kit/open_states.rb', line 103 def self.search( = {}) get_uri('/committees/', :query => ) end |