Module: Sidekiq::Portal::Timeline::Builder Private
- Defined in:
- lib/portal/timeline/builder.rb
Overview
This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.
Class Method Summary collapse
Class Method Details
.build(initial_time, cron_pattern, every_pattern, timezone) ⇒ Sidekiq::Portal::Timeline
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
15 16 17 18 19 20 21 |
# File 'lib/portal/timeline/builder.rb', line 15 def build(initial_time, cron_pattern, every_pattern, timezone) time_plan = Fugit.parse(cron_pattern) if cron_pattern time_plan = Fugit.parse(every_pattern) if every_pattern timezoner = ActiveSupport::TimeZone[timezone] Sidekiq::Portal::Timeline.new(initial_time, timezoner, time_plan) end |