Class: Parse::Constraint::GreaterThanConstraint

Inherits:
Parse::Constraint 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 Attribute Summary

Attributes inherited from Parse::Constraint

#operand, #operation, #operator, #value

Instance Method Summary collapse

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

#afterGreaterThanConstraint

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


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

contraint_keyword 

#greater_thanGreaterThanConstraint

# Alias for #gt.

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

#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 164