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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6f38b5373ce38e6de289e60a8548ee29d75c5a25
4
- data.tar.gz: 3e00ec4aae39f8731e6a798eae047cb4b9ce0d3e
3
+ metadata.gz: 94f2254ce0c1240f90ebe2c2dcd377b019a2b6a3
4
+ data.tar.gz: c095178a2033a5fcb5e9c643e7fed88137c04706
5
5
  SHA512:
6
- metadata.gz: 3301d1ea4add95e1d7d2647d93663ae8cd07347768b8a8c3b04d2cb1699575de252845b740ec72b3931c1254eb7e69f19ef4a6cc9e2794ea389e68ef8411137c
7
- data.tar.gz: 3b964af288d448ac939bc86437104cd9abaaa967cefae3c17a9688c88f648f6d017dff312fe67c4d434d146b6d3618efd7498579e9d0ff57cc4bce50d3456936
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]
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.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - msimonborg