Module: Delayed::Job::Extras::InstanceMethods
- Defined in:
- lib/delayed_job_extras/extras.rb
Instance Attribute Summary collapse
-
#__original_args ⇒ Object
Returns the value of attribute __original_args.
-
#__re_enqueue_block ⇒ Object
Returns the value of attribute __re_enqueue_block.
-
#id ⇒ Object
Returns the value of attribute id.
-
#logger ⇒ Object
Returns the value of attribute logger.
-
#priority ⇒ Object
Returns the value of attribute priority.
-
#re_enqueuable ⇒ Object
Returns the value of attribute re_enqueuable.
-
#run_at ⇒ Object
Returns the value of attribute run_at.
-
#worker_class_name ⇒ Object
Returns the value of attribute worker_class_name.
Instance Method Summary collapse
- #clone ⇒ Object
- #dj_object ⇒ Object
- #dj_object=(dj) ⇒ Object
- #enqueue(priority = self.priority, run_at = self.run_at) ⇒ Object (also: #save)
- #unique? ⇒ Boolean
Instance Attribute Details
#__original_args ⇒ Object
Returns the value of attribute __original_args.
18 19 20 |
# File 'lib/delayed_job_extras/extras.rb', line 18 def __original_args @__original_args end |
#__re_enqueue_block ⇒ Object
Returns the value of attribute __re_enqueue_block.
19 20 21 |
# File 'lib/delayed_job_extras/extras.rb', line 19 def __re_enqueue_block @__re_enqueue_block end |
#id ⇒ Object
Returns the value of attribute id.
21 22 23 |
# File 'lib/delayed_job_extras/extras.rb', line 21 def id @id end |
#logger ⇒ Object
Returns the value of attribute logger.
16 17 18 |
# File 'lib/delayed_job_extras/extras.rb', line 16 def logger @logger end |
#priority ⇒ Object
Returns the value of attribute priority.
15 16 17 |
# File 'lib/delayed_job_extras/extras.rb', line 15 def priority @priority end |
#re_enqueuable ⇒ Object
Returns the value of attribute re_enqueuable.
20 21 22 |
# File 'lib/delayed_job_extras/extras.rb', line 20 def re_enqueuable @re_enqueuable end |
#run_at ⇒ Object
Returns the value of attribute run_at.
14 15 16 |
# File 'lib/delayed_job_extras/extras.rb', line 14 def run_at @run_at end |
#worker_class_name ⇒ Object
Returns the value of attribute worker_class_name.
17 18 19 |
# File 'lib/delayed_job_extras/extras.rb', line 17 def worker_class_name @worker_class_name end |
Instance Method Details
#clone ⇒ Object
60 61 62 63 64 |
# File 'lib/delayed_job_extras/extras.rb', line 60 def clone cl = super cl.run_at = nil cl end |
#dj_object ⇒ Object
70 71 72 |
# File 'lib/delayed_job_extras/extras.rb', line 70 def dj_object Delayed::Job.find(@dj_object) end |
#dj_object=(dj) ⇒ Object
66 67 68 |
# File 'lib/delayed_job_extras/extras.rb', line 66 def dj_object=(dj) @dj_object = dj.id end |
#enqueue(priority = self.priority, run_at = self.run_at) ⇒ Object Also known as: save
50 51 52 |
# File 'lib/delayed_job_extras/extras.rb', line 50 def enqueue(priority = self.priority, run_at = self.run_at) Delayed::Job.enqueue(self, priority, run_at) end |
#unique? ⇒ Boolean
56 57 58 |
# File 'lib/delayed_job_extras/extras.rb', line 56 def unique? false end |