struct

JoobQ::Scheduler::CronJob

Inherits Struct < Value < Object

Constructors

new(pattern : String, timezone : Time::Location, next_run : String, block : Proc(Nil))
Source

Instance methods

block
clone
Source
copy_with(pattern _pattern = @pattern, timezone _timezone = @timezone, next_run _next_run = @next_run, block _block = @block)
Source
next_run(next_time : Time)
Source
next_run
pattern
timezone
to_h
Source
with_next_run(next_time : Time) : CronJob

Records are structs, so next_run(Time) only changes a copy. Use this and store the result when the change must stick.

Source