sunlight-congress 1.0.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/sunlight/congress/legislator.rb +2 -1
- data/lib/sunlight/congress/version.rb +1 -1
- data/test/legislators_test.rb +1 -1
- 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: d3ba7c35b68e5aa04330585c4e1c2a1120ea6257
|
4
|
+
data.tar.gz: 926b4f4e639371bbc2e3769b83e1bb011af15b05
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c2595d089b58591d609adbc45d1ea6208551e5499f615b51ff2b970b0b912c2ae5f7e21f38534615d73b540a921ca13e83f727e5b0367e89d23c6e76bbf96c24
|
7
|
+
data.tar.gz: 3081b8407438839d4367b02921410d0ad734bef2f6f49e81b99258a1b3397cd97c07a2a893bc7a18c60ffa7a2ec3b1a004563a51c8f864fa0b334779415df3c5
|
@@ -7,11 +7,12 @@ module Sunlight
|
|
7
7
|
end
|
8
8
|
|
9
9
|
class Sunlight::Congress::Legislator
|
10
|
-
attr_accessor :first_name, :last_name
|
10
|
+
attr_accessor :first_name, :last_name, :website
|
11
11
|
|
12
12
|
def initialize(options)
|
13
13
|
self.first_name = options["first_name"]
|
14
14
|
self.last_name = options["last_name"]
|
15
|
+
self.website = options["website"]
|
15
16
|
end
|
16
17
|
|
17
18
|
def self.by_zipcode(zipcode)
|
data/test/legislators_test.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
require 'sunlight/congress'
|
2
2
|
|
3
3
|
class TestIntegrationCongress < MiniTest::Unit::TestCase
|
4
|
-
['first_name', 'last_name'].each do |attr|
|
4
|
+
['first_name', 'last_name', 'website'].each do |attr|
|
5
5
|
define_method "test_#{attr}" do
|
6
6
|
l = Sunlight::Congress::Legislator.new(attr => "foo")
|
7
7
|
assert_equal "foo", l.send(attr)
|