Class: Parse::Constraint::GreaterThanConstraint

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

Overview

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

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

Instance Method Summary collapse

Instance Method Details

#afterGreaterThanConstraint

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



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

constraint_keyword :$gt

#greater_thanGreaterThanConstraint

Alias for #gt.



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

#gtGreaterThanConstraint

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

Examples:

q.where :field.gt => value

Returns:



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