get_your_rep 0.1.5 → 0.1.6
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 +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: 2036494c7f29adf4d775344439692a8686b74492
|
4
|
+
data.tar.gz: e4cbee4036cb3c619127fd539617295b3084448c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1d3bc8fdce0bdca164bb380efb0e24c66ccf244d09cb378f6431c0c1bb010442747b5299c315282cadb43f9dce921460afe8094be3d7deff9a36db53d972e4a3
|
7
|
+
data.tar.gz: ec9cfdc2dc4a623d21c6304829aaac5123b8accbb5f965d15a1880014f6d16c542e6341c547fa78424cc1296c81049f696472fdad4a8483d4c4e3fe81552f72f
|
@@ -182,12 +182,12 @@ module GetYourRep
|
|
182
182
|
end
|
183
183
|
|
184
184
|
def district_office
|
185
|
-
@district_office = self
|
185
|
+
@district_office = self.office_locations.select { |loc| loc[:type] == 'district' }.first
|
186
186
|
{} if @district_office.nil?
|
187
187
|
end
|
188
188
|
|
189
189
|
def capitol_office
|
190
|
-
@capitol_office = self
|
190
|
+
@capitol_office = self.office_locations.select { |loc| loc[:type] == 'capitol' }.first
|
191
191
|
{} if @capitol_office.nil?
|
192
192
|
end
|
193
193
|
|