by_ids.rb 416 B

12345678910111213141516
  1. # Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. class Sequencer::Unit::Exchange::Folders::ByIds < Sequencer::Unit::Base
  3. include ::Sequencer::Unit::Exchange::Folders::Mixin::Folder
  4. uses :ews_folder_ids
  5. provides :ews_folders
  6. def process
  7. state.provide(:ews_folders) do
  8. ews_folder_ids.collect do |folder_id|
  9. ews_folder.find(folder_id)
  10. end
  11. end
  12. end
  13. end