Class: Parse::Constraint::GreaterThanOrEqualConstraint

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

Overview

Equivalent to the `$gte` Parse query operation. The alias `on_or_after` is provided for readability.

q.where :field.gte => value
q.where :field.on_or_after => date

q.where :created_at.on_or_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

#greater_than_or_equalGreaterThanOrEqualConstraint

# Alias for #gte.

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

#gteGreaterThanOrEqualConstraint

A registered method on a symbol to create the constraint. Maps to Parse operator “$gte”.

Examples:

q.where :field.gte => value

Returns:

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

#on_or_afterGreaterThanOrEqualConstraint

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



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

contraint_keyword :$gte