Method: Parse::Query#add_constraints

Defined in:
lib/parse/query.rb

#add_constraints(list) ⇒ self

Combine a list of Constraint objects

Parameters:

  • an array of Parse::Constraint subclasses.

Returns:



486
487
488
489
490
# File 'lib/parse/query.rb', line 486

def add_constraints(list)
  list = Array.wrap(list).select { |m| m.is_a?(Parse::Constraint) }
  @where = @where + list
  self
end