Class: Parse::Constraint::LessThanOrEqualConstraint
- Inherits:
-
Constraint
- Object
- Constraint
- Parse::Constraint::LessThanOrEqualConstraint
- 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
Instance Method Summary collapse
-
#less_than_or_equal ⇒ LessThanOrEqualConstraint
Alias for #lte.
-
#lte ⇒ LessThanOrEqualConstraint
A registered method on a symbol to create the constraint.
-
#on_or_before ⇒ LessThanOrEqualConstraint
Alias for #lte that provides better readability when constraining dates.
Instance Method Details
#less_than_or_equal ⇒ LessThanOrEqualConstraint
Alias for #lte
|
|
# File 'lib/parse/query/constraints.rb', line 169
|
#lte ⇒ LessThanOrEqualConstraint
A registered method on a symbol to create the constraint. Maps to Parse operator "$lte".
|
|
# File 'lib/parse/query/constraints.rb', line 163
|
#on_or_before ⇒ LessThanOrEqualConstraint
Alias for #lte that provides better readability when constraining dates.
176 |
# File 'lib/parse/query/constraints.rb', line 176 constraint_keyword :$lte |