Class: ActiveQueue::Adapter::DelayedJobAdapter
- Inherits:
-
Object
- Object
- ActiveQueue::Adapter::DelayedJobAdapter
- Defined in:
- lib/active_queue/adapter/delayed_job_adapter.rb
Instance Method Summary collapse
- #adapter_name ⇒ Object
- #enqueue(job_klass, options = { }) ⇒ Object
-
#initialize(options = {}) ⇒ DelayedJobAdapter
constructor
A new instance of DelayedJobAdapter.
Constructor Details
#initialize(options = {}) ⇒ DelayedJobAdapter
Returns a new instance of DelayedJobAdapter.
8 9 10 |
# File 'lib/active_queue/adapter/delayed_job_adapter.rb', line 8 def initialize( = {}) @options = end |
Instance Method Details
#adapter_name ⇒ Object
11 12 13 |
# File 'lib/active_queue/adapter/delayed_job_adapter.rb', line 11 def adapter_name "delayed_job" end |
#enqueue(job_klass, options = { }) ⇒ Object
14 15 16 |
# File 'lib/active_queue/adapter/delayed_job_adapter.rb', line 14 def enqueue(job_klass, = { }) Delayed::Job.enqueue(job_klass.new()) end |