Module: Parliament::Decorators::ConstituencyArea

Defined in:
lib/parliament/decorators/constituency_area.rb

Overview

Decorator namespace for Grom::Node instances with type: id.ukpds.org/schema/ConstituencyArea

Instance Method Summary collapse

Instance Method Details

#latitudeString

Alias constituencyAreaLatitude with fallback.

Returns:

  • (String, String)

    the latitude of the Grom::Node or an empty string.


8
9
10
# File 'lib/parliament/decorators/constituency_area.rb', line 8

def latitude
  respond_to?(:constituencyAreaLatitude) ? constituencyAreaLatitude : ''
end

#longitudeString

Alias constituencyAreaLongitude with fallback.

Returns:

  • (String, String)

    the longitude of the Grom::Node or an empty string.


15
16
17
# File 'lib/parliament/decorators/constituency_area.rb', line 15

def longitude
  respond_to?(:constituencyAreaLongitude) ? constituencyAreaLongitude : ''
end

#polygonString

Alias constituencyAreaExtent with fallback.

Returns:

  • (String, String)

    the polygon of the Grom::Node or an empty string.


22
23
24
# File 'lib/parliament/decorators/constituency_area.rb', line 22

def polygon
  respond_to?(:constituencyAreaExtent) ? constituencyAreaExtent : ''
end