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

Version Path
parliament-grom-decorators-0.10.1 lib/parliament/grom/decorator/constituency_area.rb
parliament-grom-decorators-0.10.0 lib/parliament/grom/decorator/constituency_area.rb
parliament-grom-decorators-0.9.0 lib/parliament/grom/decorator/constituency_area.rb
parliament-grom-decorators-0.8.0 lib/parliament/grom/decorator/constituency_area.rb
parliament-grom-decorators-0.7.0 lib/parliament/grom/decorator/constituency_area.rb
parliament-grom-decorators-0.6.1 lib/parliament/grom/decorator/constituency_area.rb
parliament-grom-decorators-0.6.0 lib/parliament/grom/decorator/constituency_area.rb
parliament-grom-decorators-0.4.0 lib/parliament/grom/decorator/constituency_area.rb
parliament-grom-decorators-0.3.0 lib/parliament/grom/decorator/constituency_area.rb
parliament-grom-decorators-0.2.8 lib/parliament/grom/decorator/constituency_area.rb
parliament-grom-decorators-0.2.7 lib/parliament/grom/decorator/constituency_area.rb
parliament-grom-decorators-0.2.6.pre lib/parliament/grom/decorator/constituency_area.rb
parliament-grom-decorators-0.2.5.pre lib/parliament/grom/decorator/constituency_area.rb
parliament-grom-decorators-0.2.4.pre lib/parliament/grom/decorator/constituency_area.rb
parliament-grom-decorators-0.2.3 lib/parliament/grom/decorator/constituency_area.rb
parliament-grom-decorators-0.2.1 lib/parliament/grom/decorator/constituency_area.rb