module Shoryuken::Batch::Extension::Worker
Public Instance Methods
batch()
click to toggle source
# File lib/shoryuken/batch/extension/worker.rb, line 7 def batch Shoryuken::Batch.new(Thread.current[:bid].bid) if Thread.current[:bid] end
bid()
click to toggle source
# File lib/shoryuken/batch/extension/worker.rb, line 3 def bid Thread.current[:bid] end
valid_within_batch?()
click to toggle source
# File lib/shoryuken/batch/extension/worker.rb, line 11 def valid_within_batch? batch.valid? end