Module: Canql::Nodes::EBaseRecordsNode

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

Instance Method Summary collapse

Instance Method Details

#meta_data_itemObject



6
7
8
9
10
11
12
13
14
15
# File 'lib/canql/nodes/e_base_records.rb', line 6

def 
  subject = reverse_scan_for_marker(:subject) == 'mother' ? '.mother' : ''
  filter =
    if types.empty?
      { Canql::ALL => true }
    else
      { Canql::EQUALS => types.to_list }
    end
  { "unprocessed_records#{subject}.sources" => filter }
end