Class: Dynamicloud::API::Criteria::NullCondition
- Defined in:
- lib/dynamic_criteria.rb
Overview
This class represents an is null or is not null condition.
Constant Summary
Constants inherited from Condition
Condition::ROOT, Condition::WITHOUT
Instance Method Summary collapse
-
#initialize(left, is_not_null = false) ⇒ NullCondition
constructor
Constructor tha builds this condition.
-
#to_record_string(parent) ⇒ Object
This method will return a String of this condition.
Constructor Details
#initialize(left, is_not_null = false) ⇒ NullCondition
Constructor tha builds this condition
336 337 338 339 |
# File 'lib/dynamic_criteria.rb', line 336 def initialize(left, is_not_null = false) @left = left @is_not_null = is_not_null end |
Instance Method Details
#to_record_string(parent) ⇒ Object
This method will return a String of this condition
344 345 346 |
# File 'lib/dynamic_criteria.rb', line 344 def to_record_string(parent) '"' + @left + '": {' + (@is_not_null ? '"$notNull"' : '"$null"') + ': "1"}'; end |