Class: Biz::Timeline

Inherits:
Object
  • Object
show all
Defined in:
lib/biz/timeline.rb,
lib/biz/timeline/forward.rb,
lib/biz/timeline/abstract.rb,
lib/biz/timeline/backward.rb

Defined Under Namespace

Classes: Abstract, Backward, Forward

Instance Method Summary collapse

Constructor Details

#initialize(periods) ⇒ Timeline

Returns a new instance of Timeline.



4
5
6
# File 'lib/biz/timeline.rb', line 4

def initialize(periods)
  @periods = periods
end

Instance Method Details

#backwardObject



12
13
14
# File 'lib/biz/timeline.rb', line 12

def backward
  Backward.new(periods)
end

#forwardObject



8
9
10
# File 'lib/biz/timeline.rb', line 8

def forward
  Forward.new(periods)
end