Class: Parse::Constraint::NotEqualConstraint

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

Overview

Equivalent to the `$ne` Parse query operation. Where a particular field is not equal to value.

q.where :field.not => value

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

#neNotEqualConstraint

# Alias for #not.

Returns:



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

contraint_keyword :$ne

#notNotEqualConstraint

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

Examples:

q.where :field.not => value

Returns:

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