Module: Canql::Nodes::ProcessingDateNode

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

Instance Method Summary collapse

Instance Method Details

#meta_data_itemObject



77
78
79
80
81
82
83
84
85
86
87
# File 'lib/canql/nodes/e_base_records.rb', line 77

def 
  subject = reverse_scan_for_marker(:subject) == 'mother' ? '.mother' : ''
  range = fuzzy_date.to_daterange
  {
    "unprocessed_records#{subject}.processing_date" => {
      Canql::LIMITS => [
        range.date1.try(:to_date).try(:iso8601), range.date2.try(:to_date).try(:iso8601)
      ]
    }
  }
end