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
104 105 106 |
# File 'lib/gov_kit/open_states.rb', line 104 def self.find(committee_id) get_uri("/committees/#{committee_id}/") end |
.search(options = {}) ⇒ Object
108 109 110 |
# File 'lib/gov_kit/open_states.rb', line 108 def self.search( = {}) get_uri('/committees/', :query => ) end |