Class: Parse::Constraint::LessThanOrEqualConstraint

Inherits:
Constraint
  • Object
show all
Defined in:
lib/parse/query/constraints.rb

Overview

Equivalent to the $lte Parse query operation. The alias on_or_before is provided for readability. q.where :field.lte => value q.where :field.on_or_before => date

q.where :created_at.on_or_before => DateTime.now

See Also:

Instance Method Summary collapse

Instance Method Details

#less_than_or_equalLessThanOrEqualConstraint

Alias for #lte



# File 'lib/parse/query/constraints.rb', line 169

#lteLessThanOrEqualConstraint

A registered method on a symbol to create the constraint. Maps to Parse operator "$lte".

Examples:

q.where :field.lte => value

Returns:



# File 'lib/parse/query/constraints.rb', line 163

#on_or_beforeLessThanOrEqualConstraint

Alias for #lte that provides better readability when constraining dates.



176
# File 'lib/parse/query/constraints.rb', line 176

constraint_keyword :$lte