trabajo-afectivo/lib/sequencer/unit/exchange/folders/by_ids.rb
2022-01-01 14:38:12 +01:00

24 lines
574 B
Ruby

# Copyright (C) 2012-2022 Zammad Foundation, https://zammad-foundation.org/
class Sequencer
class Unit
module Exchange
module Folders
class ByIds < Sequencer::Unit::Base
include ::Sequencer::Unit::Exchange::Folders::Mixin::Folder
uses :ews_folder_ids
provides :ews_folders
def process
state.provide(:ews_folders) do
ews_folder_ids.collect do |folder_id|
ews_folder.find(folder_id)
end
end
end
end
end
end
end
end