get-your-rep 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/get-your-rep.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1902a7098096d4948e81edacebec8350d9338a2b
|
4
|
+
data.tar.gz: debaecb4efdb2fd4c9af978a8a9d32c1f4c02cc3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 22bab55e278e233d84dcf83a84a4ba6b3273f673fc54f3e142537eea230c670e3e3e1cb6f35142d7bd8f0964c680c0108e6b1fd308ca0cbb9734afa562b8692e
|
7
|
+
data.tar.gz: 84322f756a0a9f8ddffdbdbd19e6a5a21f28f43c45511d476d3fa0fbd55efece7729022114f9c3164b9fa0e3c6fd2112896180f715e451de72f42c713960ecd5
|
data/lib/get-your-rep.rb
CHANGED
@@ -4,9 +4,9 @@ require 'httparty'
|
|
4
4
|
class GetYourRep
|
5
5
|
attr_accessor :rep, :rep_info, :address, :api_key, :level, :role
|
6
6
|
|
7
|
-
def self.now(address,
|
7
|
+
def self.now(address, level = 'national', role = 'representative')
|
8
8
|
@address = voter_address(address)
|
9
|
-
@api_key =
|
9
|
+
@api_key = ENV['GOOGLE_API_KEY']
|
10
10
|
@level = level
|
11
11
|
@role = role
|
12
12
|
@rep = get_rep
|