Method: Parse::Query#constraints

Defined in:
lib/parse/query.rb

#constraints(raw = false) ⇒ Array<Parse::Constraint>, Hash

Parameters:

  • (defaults to: false)

    whether to return the hash form of the constraints.

Returns:

  • if raw is false, an array of constraints composing the :where clause for this query.

  • if raw i strue, an hash representing the constraints.



529
530
531
# File 'lib/parse/query.rb', line 529

def constraints(raw = false)
  raw ? where_constraints : @where
end