class Parse::GeoPoint

Attributes

latitude[RW]
longitude[RW]

Public Class Methods

new(hash={}) click to toggle source
# File lib/parse/geo_point.rb, line 8
def initialize hash={}
  hash = string_keyed_hash hash
  @latitude = hash['latitude']
  @longitude = hash['longitude']
end

Public Instance Methods

to_h() click to toggle source
# File lib/parse/geo_point.rb, line 14
def to_h
  {
    "__type" => "GeoPoint",
    "latitude" => @latitude,
    "longitude" => @longitude
  }
end
to_json(*args) click to toggle source
# File lib/parse/geo_point.rb, line 22
def to_json *args
  to_h.to_json
end