total.rb 475 B

12345678910111213141516171819
  1. # Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. class Sequencer::Unit::Import::Common::Model::Statistics::Total < Sequencer::Unit::Base
  3. include ::Sequencer::Unit::Import::Common::Model::Statistics::Mixin::EmptyDiff
  4. def process
  5. state.provide(:statistics_diff) do
  6. diff.merge(
  7. total: total
  8. )
  9. end
  10. end
  11. private
  12. def total
  13. raise "Missing implementation if total method for class #{self.class.name}"
  14. end
  15. end