Module: Canql::Nodes::GeneticTest::WithCondition

Defined in:
lib/canql/nodes/genetic_test.rb

Instance Method Summary collapse

Instance Method Details

#existence_filterObject



11
12
13
# File 'lib/canql/nodes/genetic_test.rb', line 11

def existence_filter
  { Canql::EQUALS => existence_modifier.text_value.strip != 'no' }
end

#to_genetic_testObject



7
8
9
# File 'lib/canql/nodes/genetic_test.rb', line 7

def to_genetic_test
  { 'exists' => existence_filter }
end