Class: VoteSmart::Npat
Class Method Summary collapse
-
.get_npat(can_id) ⇒ Object
Returns the most recent NPAT filled out by a candidate.
Methods inherited from Common
construct_url, get_json_data, hash2get, #initialize, parallelize!, request, response_child, session, set_attribute_map, #update_attributes
Constructor Details
This class inherits a constructor from VoteSmart::Common
Class Method Details
.get_npat(can_id) ⇒ Object
Returns the most recent NPAT filled out by a candidate
6 7 8 |
# File 'lib/vote_smart/npat.rb', line 6 def self.get_npat can_id request("Npat.getNpat", "candidateId" => can_id) end |