common.rb 428 B

123456789101112131415161718192021
  1. # Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. module Sequencer::Unit::Import::Common::Model::Statistics::Mixin::Common
  3. private
  4. def actions
  5. %i[skipped created updated unchanged failed deactivated]
  6. end
  7. def results
  8. %i[sum total]
  9. end
  10. def empty_diff
  11. possible_actions.index_with { |_key| 0 }
  12. end
  13. def possible_actions
  14. @possible_actions ||= actions + results
  15. end
  16. end