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