Class: Quebert::AsyncSender::Instance::InstanceJob

Inherits:
Job
  • Object
show all
Defined in:
lib/quebert/async_sender/instance.rb

Constant Summary

Constants inherited from Job

Job::Action, Job::Bury, Job::DEFAULT_JOB_DELAY, Job::DEFAULT_JOB_TTR, Job::Delete, Job::Release, Job::Retry, Job::Timeout

Instance Attribute Summary

Attributes inherited from Job

#args, #delay, #priority, #queue, #ttr

Instance Method Summary collapse

Methods inherited from Job

#around_bury, #around_delete, #around_release, backend, #backend, backend=, #enqueue, from_json, #initialize, #perform!, #to_json

Constructor Details

This class inherits a constructor from Quebert::Job

Instance Method Details

#perform(klass, initialize_args, meth, *args) ⇒ Object


6
7
8
# File 'lib/quebert/async_sender/instance.rb', line 6

def perform(klass, initialize_args, meth, *args)
  Support.constantize(klass).new(*initialize_args).send(meth, *args)
end