Class: ActiveQueue::Adapter::ResqueAdapter

Inherits:
Object
  • Object
show all
Defined in:
lib/active_queue/adapter/resque_adapter.rb

Instance Method Summary collapse

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 = {})
  @options = options
end

Instance Method Details

#adapter_nameObject



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, options = { })
  Resque.enqueue(job_klass, options)
end