Class: Parse::Constraint::LessThanConstraint

Inherits:
Constraint
  • Object
show all
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 Method Summary collapse

Instance Method Details

#beforeLessThanConstraint

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

Returns:



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

constraint_keyword :$lt

#less_thanLessThanConstraint

Alias for #lt.

Returns:



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

#ltLessThanConstraint

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

Examples:

q.where :field.lt => value

Returns:



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