Class Plucky::Normalizers::CriteriaHashValue
In: lib/plucky/normalizers/criteria_hash_value.rb
Parent: Object

Methods

Constants

NestingOperators = Set[:$or, :$and, :$nor]   Internal: Used by normalized_value to determine if we need to run the value through another criteria hash to normalize it.

Public Class methods

Public Instance methods

Public: Returns value normalized for Mongo

parent_key - The parent key if nested, otherwise same as key key - The key we are currently normalizing value - The value that should be normalized

Returns value normalized for Mongo

Private: Returns class of provided criteria hash

Private: Returns true or false if key is a nesting operator

Private: Returns true or false if key should be converted to object id

Private: Returns options of provided criteria hash

Private: Ensures value is object id if possible

[Validate]