Method: Sidetiq::Schedule#to_s
- Defined in:
- lib/sidetiq/schedule.rb
#to_s ⇒ Object
Public: Schedule to String.
Examples
class MyWorker
include Sidekiq::Worker
include Sidetiq::Schedulable
tiq { daily }
def perform
end
end
Sidetiq.schedules[MyWorker].to_s
# => "Daily"
Returns a String representing the schedule.
60 61 62 |
# File 'lib/sidetiq/schedule.rb', line 60 def to_s @schedule.to_s end |