Class: ActiveQueue::Adapter::DefaultAdapter

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

Instance Method Summary collapse

Instance Method Details

#adapter_nameObject



5
6
7
# File 'lib/active_queue/adapter.rb', line 5

def adapter_name
  "insta-queue"
end

#enqueue(job_klass, options = {}) ⇒ Object



8
9
10
# File 'lib/active_queue/adapter.rb', line 8

def enqueue(job_klass, options={})
  job_klass.new(options).perform
end