get_your_rep 0.1.4 → 0.1.5
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 -0
- 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: 94f2254ce0c1240f90ebe2c2dcd377b019a2b6a3
|
4
|
+
data.tar.gz: c095178a2033a5fcb5e9c643e7fed88137c04706
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cff6b68483ba6b52907782d4bc4ae16b2f815e3ffef4c26fe0d38ea785ad0164ca8d2562064eb5f154393cebd8fbce2427c18391aca71385e9b0a2dce2dd50a4
|
7
|
+
data.tar.gz: 3d28b26e4ebf1f9d4361f08110a6f2b31feee6ee09dce0768a565cc1dfda35a5d0955744a171eef53a2eb6bcfea050fe3ce29087cdb9a7ce460bbe4d1c901b57
|
@@ -181,6 +181,16 @@ module GetYourRep
|
|
181
181
|
self[:office_locations] = @office_locations
|
182
182
|
end
|
183
183
|
|
184
|
+
def district_office
|
185
|
+
@district_office = self[:office_locations].select { |loc| loc[:type] == 'district' }.first
|
186
|
+
{} if @district_office.nil?
|
187
|
+
end
|
188
|
+
|
189
|
+
def capitol_office
|
190
|
+
@capitol_office = self[:office_locations].select { |loc| loc[:type] == 'capitol' }.first
|
191
|
+
{} if @capitol_office.nil?
|
192
|
+
end
|
193
|
+
|
184
194
|
# Get the :email value.
|
185
195
|
def email
|
186
196
|
@email = self[:email]
|