get_your_rep 0.1.6 → 0.1.7
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/representative.rb +10 -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: 467eb20c6e5784807ccc88f2b29ee68286782eb2
|
4
|
+
data.tar.gz: f728164e861d9a7cfa6c4ff302abc7faaac9cbc8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7f2d15c8cb5ccf50d0683f39d219387f6e0b84039a4cb50e998b70bd6bda954d55fc77fa45347391df1d229c01aa101febd48d54d7e5188effdec78709754059
|
7
|
+
data.tar.gz: ce25d3bb659d585fc4b93f9ed3e8672e235eec7fa9584a827e6a62c48af11968b164d7dc1c79da354b0b4b883e70141a9328683cb50a3e5cc06658bb2cfa34ee
|
@@ -183,12 +183,20 @@ module GetYourRep
|
|
183
183
|
|
184
184
|
def district_office
|
185
185
|
@district_office = self.office_locations.select { |loc| loc[:type] == 'district' }.first
|
186
|
-
|
186
|
+
if @district_office.nil?
|
187
|
+
{}
|
188
|
+
else
|
189
|
+
@district_office
|
190
|
+
end
|
187
191
|
end
|
188
192
|
|
189
193
|
def capitol_office
|
190
194
|
@capitol_office = self.office_locations.select { |loc| loc[:type] == 'capitol' }.first
|
191
|
-
|
195
|
+
if @capitol_office.nil?
|
196
|
+
{}
|
197
|
+
else
|
198
|
+
@capitol_office
|
199
|
+
end
|
192
200
|
end
|
193
201
|
|
194
202
|
# Get the :email value.
|