Class: Delayed::StatusJob

Inherits:
Struct
  • Object
show all
Defined in:
lib/delayed/status_job.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#next_runObject

Returns the value of attribute next_run

Returns:

  • (Object)

    the current value of next_run



2
3
4
# File 'lib/delayed/status_job.rb', line 2

def next_run
  @next_run
end

Instance Method Details

#performObject



3
4
5
# File 'lib/delayed/status_job.rb', line 3

def perform
  Job.enqueue StatusJob.new, run_at: (next_run || 1.minute.from_now)
end