add.rb 481 B

12345678910111213141516
  1. # Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. class Sequencer::Unit::Import::Zendesk::ObjectAttribute::Add < Sequencer::Unit::Base
  3. prepend ::Sequencer::Unit::Import::Common::Model::Mixin::Skip::Action
  4. skip_action :skipped, :failed
  5. uses :model_class, :sanitized_name, :resource, :backend_class
  6. provides :instance
  7. def process
  8. state.provide(:instance) do
  9. backend_class.new(model_class, sanitized_name, resource)
  10. end
  11. end
  12. end