Sha256: f482029942f8a6d31ab4ea8fb7d55dafcd3c33f27996e81a36808f9aa4736cbe
Contents?: true
Size: 575 Bytes
Versions: 17
Compression:
Stored size: 575 Bytes
Contents
# frozen_string_literal: true module Dato module Local module FieldType class LatLon attr_reader :latitude, :longitude def self.parse(value, _repo) new(value[:latitude], value[:longitude]) end def initialize(latitude, longitude) @latitude = latitude @longitude = longitude end def values [latitude, longitude] end def to_hash { latitude: latitude, longitude: longitude } end end end end end
Version data entries
17 entries across 17 versions & 1 rubygems