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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 204fa027f22472ede1d46a62bb7d38e000b44402
|
4
|
+
data.tar.gz: 3950485ea1845b7863ab0c8efeb5117ef2086924
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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.
|
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-
|
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.
|
180
|
+
rubygems_version: 2.6.8
|
181
181
|
signing_key:
|
182
182
|
specification_version: 4
|
183
183
|
summary: Parliamentary Grom decorator
|