Class: GovKit::VoteSmart::BillAction

Inherits:
GovKit::VoteSmartResource show all
Defined in:
lib/gov_kit/vote_smart.rb

Instance Attribute Summary

Attributes inherited from Resource

#attributes, #raw_response

Class Method Summary collapse

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(action_id) ⇒ Object



96
97
98
99
# File 'lib/gov_kit/vote_smart.rb', line 96

def self.find(action_id)
  response = get('/Votes.getBillAction', :query => {'actionId' => action_id})
  parse(response['action'])
end