class Parse::Query::WithinCondition
Public Class Methods
new(southwest_geo_point, northeast_geo_point)
click to toggle source
# File lib/parse/query.rb, line 362 def initialize southwest_geo_point, northeast_geo_point @southwest_geo_point = southwest_geo_point @northeast_geo_point = northeast_geo_point end
Public Instance Methods
to_s()
click to toggle source
# File lib/parse/query.rb, line 367 def to_s %Q|{"$within":{"$box":[#{@southwest_geo_point.to_json},#{@northeast_geo_point.to_json}]}}| end