Module: ActiveQueue::Job::ClassMethods
- Included in:
- ActiveQueue::Job
- Defined in:
- lib/active_queue/job.rb
Instance Method Summary collapse
Instance Method Details
#perform(opt = {}) ⇒ Object
7 8 9 10 11 12 13 |
# File 'lib/active_queue/job.rb', line 7 def perform(opt = {}) val = opt["val"] || opt[:val] jk = opt["job_klass"] || opt[:job_klass] klass = jk.class == String ? eval(jk) : jk @v = klass.new(val) @v.perform end |