checkbox.rb 532 B

1234567891011121314151617181920212223242526
  1. # Copyright (C) 2012-2021 Zammad Foundation, http://zammad-foundation.org/
  2. module Import
  3. class Zendesk
  4. module ObjectAttribute
  5. class Checkbox < Import::Zendesk::ObjectAttribute::Base
  6. def init_callback(_object_attribte)
  7. @data_option.merge!(
  8. default: false,
  9. options: {
  10. true => 'yes',
  11. false => 'no',
  12. },
  13. )
  14. end
  15. private
  16. def data_type(_attribute)
  17. 'boolean'
  18. end
  19. end
  20. end
  21. end
  22. end