Sha256: 708988e034ca3bcef99f73788c2d72ed2371fdf9c2a5bf94f0f6e9967a85b90e
Contents?: true
Size: 217 Bytes
Versions: 91
Compression:
Stored size: 217 Bytes
Contents
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
91 entries across 86 versions & 8 rubygems