Class: SidekiqScheduler::RufusUtils
- Inherits:
-
Object
- Object
- SidekiqScheduler::RufusUtils
- Defined in:
- lib/sidekiq-scheduler/rufus_utils.rb
Class Method Summary collapse
-
.normalize_schedule_options(options) ⇒ Array
Normalizes schedule options to rufus scheduler options.
Class Method Details
.normalize_schedule_options(options) ⇒ Array
Normalizes schedule options to rufus scheduler options
16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/sidekiq-scheduler/rufus_utils.rb', line 16 def self.() schedule, opts = if !opts.is_a?(Hash) opts = {} end opts = SidekiqScheduler::Utils.symbolize_keys(opts) return schedule, opts end |