skip.rb 460 B

12345678910111213141516171819
  1. # Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. class Sequencer::Unit::Import::Freshdesk::ObjectAttribute::Skip < Sequencer::Unit::Base
  3. uses :resource
  4. provides :action
  5. def process
  6. return if !resource['default'] || allowed_default_attributes.include?(resource['name'])
  7. state.provide(:action, :skipped)
  8. end
  9. private
  10. def allowed_default_attributes
  11. @allowed_default_attributes ||= %w[ticket_type]
  12. end
  13. end