Class: Qmin::Resque::BackgroundCallJob
- Inherits:
-
Object
- Object
- Qmin::Resque::BackgroundCallJob
- Defined in:
- lib/qmin/resque/background_call_job.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(klass, method_name, id) ⇒ BackgroundCallJob
constructor
A new instance of BackgroundCallJob.
- #perform ⇒ Object
Constructor Details
#initialize(klass, method_name, id) ⇒ BackgroundCallJob
Returns a new instance of BackgroundCallJob.
12 13 14 15 16 17 18 19 20 |
# File 'lib/qmin/resque/background_call_job.rb', line 12 def initialize(klass, method_name, id) begin @klass = klass.is_a?(Class) ? klass : klass.constantize @method_name = method_name @id = id rescue => e ::Qmin::Qmin.current.report(e) end end |