trabajo-afectivo/lib/sequencer/unit/exchange/folders/by_ids.rb

25 lines
574 B
Ruby
Raw Normal View History

2022-01-01 13:38:12 +00:00
# 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