diff.rb 610 B

12345678910111213141516171819202122232425
  1. # Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. class Sequencer::Unit::Import::Exchange::FolderContact::Statistics::Diff < Sequencer::Unit::Base
  3. include ::Sequencer::Unit::Import::Common::Model::Statistics::Mixin::ActionDiff
  4. uses :ews_folder_name
  5. def process
  6. state.provide(:statistics_diff) do
  7. # build structure for a general diff
  8. # and a folder specific sub structure
  9. diff.merge(
  10. folders: {
  11. ews_folder_name => diff
  12. }
  13. )
  14. end
  15. end
  16. private
  17. def actions
  18. %i[created updated unchanged skipped failed]
  19. end
  20. end