Class: Delayed::PerformableMethod

Inherits:
Object
  • Object
show all
Includes:
Job::Extras
Defined in:
lib/delayed_job_extras/performable_method.rb

Constant Summary

Constants included from Job::Extras

Job::Extras::PRIORITY_LEVELS

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Job::Extras

included

Instance Attribute Details

#worker_class_nameObject

Returns the value of attribute worker_class_name.



5
6
7
# File 'lib/delayed_job_extras/performable_method.rb', line 5

def worker_class_name
  @worker_class_name
end

Instance Method Details

#initialize_with_extras(object, method, args) ⇒ Object



7
8
9
10
# File 'lib/delayed_job_extras/performable_method.rb', line 7

def initialize_with_extras(object, method, args)
  self.worker_class_name = "#{object.class.to_s.underscore}/#{method}"
  initialize_without_extras(object, method, args)
end