Class: Biz::Periods::Before

Inherits:
Abstract
  • Object
show all
Defined in:
lib/biz/periods/before.rb

Instance Method Summary collapse

Constructor Details

#initialize(schedule, origin) ⇒ Before

Returns a new instance of Before.



7
8
9
10
11
12
13
# File 'lib/biz/periods/before.rb', line 7

def initialize(schedule, origin)
  @boundary  = TimeSegment.before(origin)
  @intervals = schedule.intervals.reverse
  @shifts    = schedule.shifts.reverse

  super
end

Instance Method Details

#timelineObject



15
16
17
# File 'lib/biz/periods/before.rb', line 15

def timeline
  super.backward
end