Class: EvaledJob

Inherits:
Object
  • Object
show all
Defined in:
lib/dm-delayed-job/job.rb

Instance Method Summary collapse

Constructor Details

#initializeEvaledJob

Returns a new instance of EvaledJob.



304
305
306
# File 'lib/dm-delayed-job/job.rb', line 304

def initialize
  @job = yield
end

Instance Method Details

#performObject



308
309
310
# File 'lib/dm-delayed-job/job.rb', line 308

def perform
  eval(@job)
end