trabajo-afectivo/lib/sequencer/unit/import/zendesk/ticket/group_id.rb

23 lines
442 B
Ruby
Raw Normal View History

# Copyright (C) 2012-2021 Zammad Foundation, http://zammad-foundation.org/
class Sequencer
class Unit
module Import
module Zendesk
module Ticket
class GroupId < Sequencer::Unit::Common::Provider::Named
uses :resource, :group_map
private
def group_id
group_map.fetch(resource.group_id, 1)
end
end
end
end
end
end
end