Class: Decidim::Core::CoordinatesType

Inherits:
Api::Types::BaseObject
  • Object
show all
Defined in:
lib/decidim/api/types/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/types/coordinates_type.rb', line 12

def latitude
  object[0]
end

#longitudeObject



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

def longitude
  object[1]
end