Class: Resque::Job
- Inherits:
-
Object
- Object
- Resque::Job
- Extended by:
- Helpers
- Defined in:
- lib/resque_unit/plugin.rb,
lib/resque_unit/resque.rb
Constant Summary collapse
- DontPerform =
Class.new(StandardError)
Class Method Summary collapse
Methods included from Helpers
classify, constantize, decode, encode
Class Method Details
.create(queue, klass_name, *args) ⇒ Object
219 220 221 |
# File 'lib/resque_unit/resque.rb', line 219 def self.create(queue, klass_name, *args) Resque.enqueue_unit(queue, {"class" => constantize(klass_name), "args" => args}) end |