class Dynamicloud::API::Criteria::NotEqualCondition
This class represents a not equal condition left != '%som%thing%' @author Eleazar Gomez @version 1.0.0 @since 8/23/15
Public Class Methods
new(left, right)
click to toggle source
Constructor tha builds this condition @param left attribute to compare @param right right part of this condition
# File lib/dynamic_criteria.rb, line 313 def initialize(left, right) @left = left @right = right end
Public Instance Methods
to_record_string(parent)
click to toggle source
This method will return a String of this condition @param parent this is the parent of this condition @return a json
# File lib/dynamic_criteria.rb, line 321 def to_record_string(parent) '"$ne" : {"' + @left + '" : ' + (@right.is_a?(String) ? '"' : '') + (@right.to_s) + (@right.is_a?(String) ? '"' : '') + '}' end