Module: Canql::Nodes::FragmentedDateRangeNode

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

Instance Method Summary collapse

Instance Method Details

#to_daterangeObject



17
18
19
20
21
22
# File 'lib/canql/nodes/dates.rb', line 17

def to_daterange
  d1 = start.to_daterange.date1
  d2 = finish.to_daterange.date2

  Daterange.new(d1, d2)
end