Class: CivicInfo
- Inherits:
-
Object
- Object
- CivicInfo
- Defined in:
- lib/civic_info.rb
Instance Method Summary collapse
- #elections ⇒ Object
-
#initialize ⇒ CivicInfo
constructor
A new instance of CivicInfo.
- #voter_info(election_id, address) ⇒ Object
Constructor Details
Instance Method Details
#elections ⇒ Object
35 36 37 38 |
# File 'lib/civic_info.rb', line 35 def elections call_string = 'elections' @google_api.get(call_string) end |
#voter_info(election_id, address) ⇒ Object
40 41 42 43 44 45 |
# File 'lib/civic_info.rb', line 40 def voter_info(election_id, address) call_string = "voterinfo/#{election_id}/lookup" body = { :address => address } @google_api.post(call_string, body) end |