trabajo-afectivo/lib/sequencer/unit/import/zendesk/object_attribute/add.rb

27 lines
679 B
Ruby
Raw Permalink 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 Import
module Zendesk
module ObjectAttribute
class Add < Sequencer::Unit::Base
prepend ::Sequencer::Unit::Import::Common::Model::Mixin::Skip::Action
skip_action :skipped, :failed
uses :model_class, :sanitized_name, :resource, :backend_class
provides :instance
def process
state.provide(:instance) do
backend_class.new(model_class, sanitized_name, resource)
end
end
end
end
end
end
end
end