Sha256: dda702d5b630b7c10787aee4f1f25dbc307dbd81dc70a4f6db8f4390a9232564
Contents?: true
Size: 1.42 KB
Versions: 8
Compression:
Stored size: 1.42 KB
Contents
module Tnql #:nodoc: all module Nodes module EBaseRecordsNode def meta_data_item filter = if types.empty? { Tnql::ALL => true } else { Tnql::EQUALS => types.to_list } end { 'unprocessed_records.sources' => filter } end end module BatchTypesNode def to_list allowed_types.to_list end end module AllowedTypesNode def to_list list = [batch_type.to_type] list.concat types.elements.map(&:extract_type) end end module MoreTypesNode def extract_type batch_type.to_type end end module ActionsNode def meta_data_item { 'action.actioninitiated' => { Tnql::EQUALS => action_type.text_value.upcase.strip } } end end module ActionProviderCodeNode def meta_data_item # default to provider key = provider_type.text_value == 'cancer network' ? 'cn_ukacr' : 'providercode' { "action.#{key}" => { Tnql::EQUALS => code.text_value.upcase } } end end module ActionProviderNameNode def meta_data_item # default to provider key = provider_type.text_value == 'cancer network' ? 'cn_ukacrname' : 'providername' { "action.#{key}" => { Tnql::BEGINS => short_desc.text_value.upcase, :interval => interval } } end end end end
Version data entries
8 entries across 8 versions & 1 rubygems