Class: DelayedJobEs::DummyJob
- Inherits:
-
Object
- Object
- DelayedJobEs::DummyJob
- Defined in:
- lib/delayed_job_es.rb
Overview
Your code goes hereā¦
Instance Attribute Summary collapse
-
#arguments ⇒ Object
Returns the value of attribute arguments.
Instance Method Summary collapse
-
#initialize(args = {}) ⇒ DummyJob
constructor
A new instance of DummyJob.
- #perform ⇒ Object
Constructor Details
#initialize(args = {}) ⇒ DummyJob
Returns a new instance of DummyJob.
16 17 18 |
# File 'lib/delayed_job_es.rb', line 16 def initialize(args={}) @arguments = args[:arguments] end |
Instance Attribute Details
#arguments ⇒ Object
Returns the value of attribute arguments.
14 15 16 |
# File 'lib/delayed_job_es.rb', line 14 def arguments @arguments end |
Instance Method Details
#perform ⇒ Object
20 21 22 |
# File 'lib/delayed_job_es.rb', line 20 def perform puts "Peforming dummyjob at #{Time.now}, with arguments : #{@arguments}" end |