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.
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.
23 24 25 |
# File 'lib/parliament/grom/decorator/european_region.rb', line 23 def constituency_count respond_to?(:count) ? count : nil end |
#gss_code ⇒ String
Alias gssCode with fallback.
16 17 18 |
# File 'lib/parliament/grom/decorator/european_region.rb', line 16 def gss_code respond_to?(:gssCode) ? gssCode : nil end |
#name ⇒ String
Alias prefLabel with fallback.
9 10 11 |
# File 'lib/parliament/grom/decorator/european_region.rb', line 9 def name respond_to?(:prefLabel) ? prefLabel : '' end |