Module: BatchProcessor::Batch::Core

Extended by:
ActiveSupport::Concern
Included in:
BatchProcessor::BatchBase
Defined in:
lib/batch_processor/batch/core.rb

Instance Method Summary collapse

Instance Method Details

#collectionObject



27
28
29
# File 'lib/batch_processor/batch/core.rb', line 27

def collection
  self.class::Collection.new(**collection_input)
end

#detailsObject



31
32
33
# File 'lib/batch_processor/batch/core.rb', line 31

def details
  BatchProcessor::BatchDetails.new(batch_id)
end

#initialize(**input) ⇒ Object



22
23
24
25
# File 'lib/batch_processor/batch/core.rb', line 22

def initialize(**input)
  super(input.slice(*_attributes))
  @collection_input = input.except(*_attributes)
end