Sha256: ee2d9a8e0658e8c1451572fd3bf2f3b2bcdf1cf47e74fc065baae780feafbd91
Contents?: true
Size: 1021 Bytes
Versions: 38
Compression:
Stored size: 1021 Bytes
Contents
module Parliament module Grom module Decorator # Decorator namespace for Grom::Node instances with type: https://id.parliament.uk/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
38 entries across 38 versions & 1 rubygems