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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/get-your-rep.rb +2 -2
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 35f7a79adeb753238b67448e1da5d32eb3d2a5b2
4
- data.tar.gz: ab624b513897130812768cc4109b2750319847b5
3
+ metadata.gz: 1902a7098096d4948e81edacebec8350d9338a2b
4
+ data.tar.gz: debaecb4efdb2fd4c9af978a8a9d32c1f4c02cc3
5
5
  SHA512:
6
- metadata.gz: 8d7f613a4be1746682ef03f881ceca63fa1ac28b5d8a5a48e4866fc0d45bace462b29d5069918e85d10cae9a4e5d5b000cadd4cdd400380767dde75f20c01e89
7
- data.tar.gz: be3da81d72c888811efc2547c8cea036dce710dacc8a88bd616942ccd524ab4d5d6241deac97a84f78f02c7bfa51f516ec3aae6143f9bf535258d76b4489bb39
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, api_key, level = 'national', role = 'representative')
7
+ def self.now(address, level = 'national', role = 'representative')
8
8
  @address = voter_address(address)
9
- @api_key = api_key
9
+ @api_key = ENV['GOOGLE_API_KEY']
10
10
  @level = level
11
11
  @role = role
12
12
  @rep = get_rep
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: get-your-rep
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - msimonborg