Class: Parse::Constraint::LessThanConstraint
- Inherits:
- Parse::Constraint
- Object
- Parse::Constraint
- Parse::Constraint::LessThanConstraint
- Defined in:
- lib/parse/query/constraints.rb
Overview
Equivalent to the `$lt` Parse query operation. The alias `before` is provided for readability.
q.where :field.lt => value
q.where :field.before => date
q.where :created_at.before => DateTime.now
Instance Attribute Summary
Attributes inherited from Parse::Constraint
#operand, #operation, #operator, #value
Instance Method Summary collapse
- #before ⇒ LessThanConstraint
Alias for #lt that provides better readability when constraining dates.
- #less_than ⇒ LessThanConstraint
# Alias for #lt.
- #lt ⇒ LessThanConstraint
A registered method on a symbol to create the constraint.
Methods inherited from Parse::Constraint
#as_json, #build, contraint_keyword, create, #formatted_value, formatted_value, #initialize, #key, #precedence, register, #to_s
Constructor Details
This class inherits a constructor from Parse::Constraint
Instance Method Details
#before ⇒ LessThanConstraint
Alias for #lt that provides better readability when constraining dates.
150 | # File 'lib/parse/query/constraints.rb', line 150 contraint_keyword :$lt |
#lt ⇒ LessThanConstraint
A registered method on a symbol to create the constraint. Maps to Parse operator “$lt”.
# File 'lib/parse/query/constraints.rb', line 137
|