Sha256: 8fa691fd78cf496fd7c96aa8907fe6e96f596706f95c8d3f2c737e1b2cb3d3b2
Contents?: true
Size: 872 Bytes
Versions: 23
Compression:
Stored size: 872 Bytes
Contents
module Parliament module Grom module Decorator # Decorator namespace for Grom::Node instances with type: http://data.ordnancesurvey.co.uk/ontology/admingeo/EuropeanRegion. module EuropeanRegion # Alias prefLabel with fallback. # # @return [String, String] the given name of the Grom::Node or an empty string. def name respond_to?(:prefLabel) ? prefLabel : '' end # Alias gssCode with fallback. # # @return [String, String] the given name of the Grom::Node or nil. def gss_code respond_to?(:gssCode) ? gssCode : nil end # Alias count with fallback. # # @return [String, String] the count of the Grom::Node or nil. def constituency_count respond_to?(:count) ? count : nil end end end end end
Version data entries
23 entries across 23 versions & 1 rubygems