Class: Biz::Periods::Abstract

Inherits:
SimpleDelegator
  • Object
show all
Defined in:
lib/biz/periods/abstract.rb

Direct Known Subclasses

After, Before

Instance Method Summary collapse

Constructor Details

#initialize(schedule, origin) ⇒ Abstract

Returns a new instance of Abstract.



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

def initialize(schedule, origin)
  @schedule = schedule
  @origin   = origin

  super(periods)
end

Instance Method Details

#timelineObject



14
15
16
# File 'lib/biz/periods/abstract.rb', line 14

def timeline
  Timeline::Proxy.new(self)
end