Sha256: 170073c639ed701a8cf6685ad1a7a211baefcbfb813d416b8098a4609ab5a1db
Contents?: true
Size: 266 Bytes
Versions: 27
Compression:
Stored size: 266 Bytes
Contents
# frozen_string_literal: true # encoding: utf-8 class LatLng attr_accessor :lat, :lng def self.demongoize(object) LatLng.new(object[1], object[0]) end def initialize(lat, lng) @lat, @lng = lat, lng end def mongoize [ lng, lat ] end end
Version data entries
27 entries across 27 versions & 2 rubygems