class SidekiqScheduler::Scheduler
def prepare_arguments(config)
-
(Hash)
-
Options Hash:
(**config)
-
args
(Hash/Array
) -- the arguments to be passed to the job -
class
(String
) -- the job class
Parameters:
-
config
(Hash
) -- the options to be converted
def prepare_arguments(config) config['class'] = SidekiqScheduler::Utils.try_to_constantize(config['class']) if config['args'].is_a?(Hash) config['args'].symbolize_keys! if config['args'].respond_to?(:symbolize_keys!) else config['args'] = Array(config['args']) end config end