Class: GovKit::OpenStates::Committee

Inherits:
GovKit::OpenStatesResource show all
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

#attributes, #raw_response

Class Method Summary collapse

Methods inherited from GovKit::OpenStatesResource

get_uri

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(options = {})
  get_uri('/committees/', :query => options)
end