class KakaxiParse::Datatype::GeoPoint
Attributes
lat[RW]
lon[RW]
Public Class Methods
new(lat=nil, lon=nil)
click to toggle source
# File lib/kakaxi_parse/datatypes/geopoint.rb, line 6 def initialize(lat=nil, lon=nil) @lat = lat.to_f @lon = lon.to_f end
Public Instance Methods
to_hash()
click to toggle source
# File lib/kakaxi_parse/datatypes/geopoint.rb, line 11 def to_hash { __type: 'GeoPoint', latitude: @lat, longitude: @lon } end