total.rb 761 B

12345678910111213141516171819202122232425262728293031
  1. # Copyright (C) 2012-2022 Zammad Foundation, https://zammad-foundation.org/
  2. class Sequencer
  3. class Unit
  4. module Import
  5. module Common
  6. module Model
  7. module Statistics
  8. class Total < Sequencer::Unit::Base
  9. include ::Sequencer::Unit::Import::Common::Model::Statistics::Mixin::EmptyDiff
  10. def process
  11. state.provide(:statistics_diff) do
  12. diff.merge(
  13. total: total
  14. )
  15. end
  16. end
  17. private
  18. def total
  19. raise "Missing implementation if total method for class #{self.class.name}"
  20. end
  21. end
  22. end
  23. end
  24. end
  25. end
  26. end
  27. end