by_ids.rb 497 B

12345678910111213141516171819202122
  1. class Sequencer
  2. class Unit
  3. module Exchange
  4. module Folders
  5. class ByIds < Sequencer::Unit::Base
  6. include ::Sequencer::Unit::Exchange::Folders::Mixin::Folder
  7. uses :ews_folder_ids
  8. provides :ews_folders
  9. def process
  10. state.provide(:ews_folders) do
  11. ews_folder_ids.collect do |folder_id|
  12. ews_folder.find(folder_id)
  13. end
  14. end
  15. end
  16. end
  17. end
  18. end
  19. end
  20. end