Method: Parse::Constraint#build
- Defined in:
- lib/parse/query/constraint.rb
#build ⇒ Hash
Builds the JSON hash representation of this constraint for a Parse query. This method should be overriden by subclasses. The default implementation implements buildling the equality constraint.
173 174 175 176 |
# File 'lib/parse/query/constraint.rb', line 173 def build return { @operation.operand => formatted_value } if @operation.operator == :eq || key.nil? { @operation.operand => { key => formatted_value } } end |