Class: Asynchronic::QueueEngine::Synchronic::MockJob

Inherits:
TransparentProxy
  • Object
show all
Defined in:
lib/asynchronic/queue_engine/synchronic.rb

Instance Method Summary collapse

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_finalizeObject



80
81
# File 'lib/asynchronic/queue_engine/synchronic.rb', line 80

def before_finalize
end

#callObject



76
77
78
# File 'lib/asynchronic/queue_engine/synchronic.rb', line 76

def call
  block.call process
end