Class: Asynchronic::QueueEngine::Synchronic::MockJob
- Inherits:
-
TransparentProxy
- Object
- TransparentProxy
- Asynchronic::QueueEngine::Synchronic::MockJob
- Defined in:
- lib/asynchronic/queue_engine/synchronic.rb
Instance Method Summary collapse
- #before_finalize ⇒ Object
- #call ⇒ Object
-
#initialize(job, process, block) ⇒ MockJob
constructor
A new instance of MockJob.
Constructor Details
#initialize(job, process, block) ⇒ MockJob
Returns a new instance of MockJob.
70 71 72 73 74 |
# File 'lib/asynchronic/queue_engine/synchronic.rb', line 70 def initialize(job, process, block) super job @process = process @block = block end |
Instance Method Details
#before_finalize ⇒ Object
80 81 |
# File 'lib/asynchronic/queue_engine/synchronic.rb', line 80 def before_finalize end |
#call ⇒ Object
76 77 78 |
# File 'lib/asynchronic/queue_engine/synchronic.rb', line 76 def call block.call process end |