Module: BatchProcessor::Processor::Process

Extended by:
ActiveSupport::Concern
Included in:
BatchProcessor::ProcessorBase
Defined in:
lib/batch_processor/processor/process.rb

Instance Method Summary collapse

Instance Method Details

#processObject



15
16
17
18
19
20
21
22
23
# File 'lib/batch_processor/processor/process.rb', line 15

def process
  batch.start

  run_callbacks(:collection_processed) { process_collection }

  batch.finish unless batch.finished? || batch.unfinished_jobs?

  self
end

#process_collection_item(_item) ⇒ Object



25
26
27
# File 'lib/batch_processor/processor/process.rb', line 25

def process_collection_item(_item)
  # Abstract
end