null.rb 319 B

1234567891011121314151617181920212223
  1. # Copyright (C) 2012-2023 Zammad Foundation, https://zammad-foundation.org/
  2. class Channel::Driver::Null
  3. def fetchable?(_channel)
  4. false
  5. end
  6. def fetch(...)
  7. {
  8. result: 'ok',
  9. fetched: 0,
  10. notice: '',
  11. }
  12. end
  13. def disconnect
  14. true
  15. end
  16. def self.streamable?
  17. false
  18. end
  19. end