integer.rb 593 B

1234567891011121314151617181920212223242526
  1. # this require is required (hehe) because of Rails autoloading
  2. # which causes strange behavior not inheriting correctly
  3. # from Import::OTRS::DynamicField
  4. require_dependency 'import/zendesk/object_attribute/base'
  5. module Import
  6. class Zendesk
  7. module ObjectAttribute
  8. class Integer < Import::Zendesk::ObjectAttribute::Base
  9. def init_callback(_object_attribte)
  10. @data_option.merge!(
  11. min: 0,
  12. max: 999_999_999,
  13. )
  14. end
  15. private
  16. def data_type(_attribute)
  17. 'integer'
  18. end
  19. end
  20. end
  21. end
  22. end