Sha256: b35d31b785685f43e71b3cc7344dbe114033bee9d4f96079117f1d93fc55e82e
Contents?: true
Size: 528 Bytes
Versions: 55
Compression:
Stored size: 528 Bytes
Contents
# frozen_string_literal: true module Decidim module Core # This type represents a Decidim's global property. class CoordinatesType < Decidim::Api::Types::BaseObject description "Physical coordinates for a location" field :latitude, GraphQL::Types::Float, "Latitude of this coordinate", null: false field :longitude, GraphQL::Types::Float, "Longitude of this coordinate", null: false def latitude object[0] end def longitude object[1] end end end end
Version data entries
55 entries across 55 versions & 1 rubygems