Class: Junkfood::Ceb::Executors::DelayedJobExecutor
- Inherits:
-
Object
- Object
- Junkfood::Ceb::Executors::DelayedJobExecutor
- Defined in:
- lib/junkfood/ceb/executors/delayed_job_command_executor.rb
Overview
An executor that queues up a DelayedJob to execute the command at a later point in time.
EXPERIMENTAL: This is untested, unfinished code.
Instance Method Summary collapse
Instance Method Details
#call(command) ⇒ Object
55 56 57 |
# File 'lib/junkfood/ceb/executors/delayed_job_command_executor.rb', line 55 def call(command) Delayed::Job.enqueue DelayedJobExecutorJob.new(command.to_json) end |