Module: Parliament::Grom::Decorator::EuropeanRegion
- Defined in:
- lib/parliament/grom/decorator/european_region.rb
Overview
Decorator namespace for Grom::Node instances with type: data.ordnancesurvey.co.uk/ontology/admingeo/EuropeanRegion. rubocop:disable ModuleLength
Instance Method Summary collapse
-
#constituency_count ⇒ String
Alias count with fallback.
-
#gss_code ⇒ String
Alias gssCode with fallback.
-
#name ⇒ String
Alias prefLabel with fallback.
Instance Method Details
#constituency_count ⇒ String
Alias count with fallback.
24 25 26 |
# File 'lib/parliament/grom/decorator/european_region.rb', line 24 def constituency_count respond_to?(:count) ? count : nil end |
#gss_code ⇒ String
Alias gssCode with fallback.
17 18 19 |
# File 'lib/parliament/grom/decorator/european_region.rb', line 17 def gss_code respond_to?(:gssCode) ? gssCode : nil end |
#name ⇒ String
Alias prefLabel with fallback.
10 11 12 |
# File 'lib/parliament/grom/decorator/european_region.rb', line 10 def name respond_to?(:prefLabel) ? prefLabel : '' end |