Sha256: 72d4f54bb2e761983d350a180518f51235cc3c2821b5e188a1d311a4c22aa7cc
Contents?: true
Size: 1016 Bytes
Versions: 16
Compression:
Stored size: 1016 Bytes
Contents
module Parliament module Grom module Decorator # Decorator namespace for Grom::Node instances with type: http://id.ukpds.org/schema/ConstituencyArea module ConstituencyArea # Alias constituencyAreaLatitude with fallback. # # @return [String, String] the latitude of the Grom::Node or an empty string. def latitude respond_to?(:constituencyAreaLatitude) ? constituencyAreaLatitude : '' end # Alias constituencyAreaLongitude with fallback. # # @return [String, String] the longitude of the Grom::Node or an empty string. def longitude respond_to?(:constituencyAreaLongitude) ? constituencyAreaLongitude : '' end # Alias constituencyAreaExtent with fallback. # # @return [String, String] the polygon of the Grom::Node or an empty string. def polygon respond_to?(:constituencyAreaExtent) ? constituencyAreaExtent : [] end end end end end
Version data entries
16 entries across 16 versions & 1 rubygems