Class: Tartarus::ArchiveStrategy::DestroyAll

Inherits:
Object
  • Object
show all
Defined in:
lib/tartarus/archive_strategy/destroy_all.rb

Instance Method Summary collapse

Instance Method Details

#call(collection) ⇒ Object



4
5
6
7
8
# File 'lib/tartarus/archive_strategy/destroy_all.rb', line 4

def call(collection)
  Tartarus::ArchiveStrategy::ExtractBatch.new.call(collection) do |batch|
    batch.destroy_all
  end
end