Class: Decidim::Geo::GeoCoordinatesType

Inherits:
Api::Types::BaseObject
  • Object
show all
Defined in:
lib/decidim/api/geo_coordinates_type.rb

Overview

This type represents a Decidim’s global property.

Instance Method Summary collapse

Instance Method Details

#latitudeObject



12
13
14
# File 'lib/decidim/api/geo_coordinates_type.rb', line 12

def latitude
  object[:latitude]
end

#longitudeObject



16
17
18
# File 'lib/decidim/api/geo_coordinates_type.rb', line 16

def longitude
  object[:longitude]
end