Module: Parliament::Grom::Decorator::ConstituencyArea
- Defined in:
- lib/parliament/grom/decorator/constituency_area.rb
Overview
Decorator namespace for Grom::Node instances with type: id.parliament.uk/schema/ConstituencyArea
Instance Method Summary collapse
-
#latitude ⇒ String
Alias constituencyAreaLatitude with fallback.
-
#longitude ⇒ String
Alias constituencyAreaLongitude with fallback.
-
#polygon ⇒ String
Alias constituencyAreaExtent with fallback.
Instance Method Details
#latitude ⇒ String
Alias constituencyAreaLatitude with fallback.
9 10 11 |
# File 'lib/parliament/grom/decorator/constituency_area.rb', line 9 def latitude respond_to?(:constituencyAreaLatitude) ? constituencyAreaLatitude : '' end |
#longitude ⇒ String
Alias constituencyAreaLongitude with fallback.
16 17 18 |
# File 'lib/parliament/grom/decorator/constituency_area.rb', line 16 def longitude respond_to?(:constituencyAreaLongitude) ? constituencyAreaLongitude : '' end |
#polygon ⇒ String
Alias constituencyAreaExtent with fallback.
23 24 25 |
# File 'lib/parliament/grom/decorator/constituency_area.rb', line 23 def polygon respond_to?(:constituencyAreaExtent) ? constituencyAreaExtent : [] end |