parliament-grom-decorators 0.1.0 → 0.1.1

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: 325a1d6a005f674e28f6a843336245ce6d134ee7
4
- data.tar.gz: 44d029dc4bd3e87116e2ca61daa284bc4b5d5810
3
+ metadata.gz: 204fa027f22472ede1d46a62bb7d38e000b44402
4
+ data.tar.gz: 3950485ea1845b7863ab0c8efeb5117ef2086924
5
5
  SHA512:
6
- metadata.gz: ed041204891ba0ead349e3a0fb24691355f23b8ade0b290a7c237d82b40f6ed6b9ed279f7cf0a54992c2cf7c497daa47a20167c205a71bc6b3723cc7e4f5ef29
7
- data.tar.gz: 6f8b8f08538660575355382f614737bc40c550264e7b4232f2455d485b620cbb58281f6d4c42657f35e996b1206ce73d0c8066d0ba21d2a13161f3bf925617a9
6
+ metadata.gz: 5f4113b2108599f25f3cd35e85760466ddd8a5e2dd0582da704fb9f54b2d6d53a8b115285365e989ecc30e6cac3f3007ff1b6fd5c33e8bed5c571437789e638e
7
+ data.tar.gz: 9fb200cd7f4ec4664512c1e33a811ef1fc8256d7cb6f18f15f08b942fd11b3f07614f6e61cdc4601a5a6e64795f0f8d72d1226b6bc15f60746dcc6bbe470fb0c
@@ -2,7 +2,10 @@ module Parliament
2
2
  module Grom
3
3
  module Decorator
4
4
  # Decorator namespace for Grom::Node instances with type: http://id.ukpds.org/schema/ConstituencyGroup
5
+ #
6
+ # attr [Boolean] correct verifies that the Grom::Node is the expected constituency. This is used in conjunction with postcode lookup to verify if the Grom::Node is the expected constituency.
5
7
  module ConstituencyGroup
8
+ attr_accessor :correct
6
9
  # Alias constituencyGroupName with fallback.
7
10
  #
8
11
  # @return [String, String] the name of the Grom::Node or an empty string.
@@ -88,6 +91,13 @@ module Parliament
88
91
 
89
92
  !has_end_date
90
93
  end
94
+
95
+ # Checks if Grom::Node is the correct constituency.
96
+ #
97
+ # @return [Boolean] a boolean depending on whether or not the Grom::Node is the expected constituency.
98
+ def correct?
99
+ @correct || false
100
+ end
91
101
  end
92
102
  end
93
103
  end
@@ -1,7 +1,7 @@
1
1
  module Parliament
2
2
  module Grom
3
3
  module Decorator
4
- VERSION = '0.1.0'.freeze
4
+ VERSION = '0.1.1'.freeze
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: parliament-grom-decorators
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rebecca Appleyard
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-04-20 00:00:00.000000000 Z
11
+ date: 2017-04-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -177,7 +177,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
177
177
  version: '0'
178
178
  requirements: []
179
179
  rubyforge_project:
180
- rubygems_version: 2.6.6
180
+ rubygems_version: 2.6.8
181
181
  signing_key:
182
182
  specification_version: 4
183
183
  summary: Parliamentary Grom decorator