class SidekiqScheduler::JobPresenter
def self.build_collection(schedule_hash)
-
(Array
- an array with the instances of presenters)
Parameters:
-
schedule_hash
(Hash
) -- with the redis schedule
def self.build_collection(schedule_hash) schedule_hash ||= {} schedule_hash.sort.map do |name, job_spec| new(name, job_spec) end end