connected.rb 397 B

1234567891011121314151617
  1. # Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. class Sequencer::Unit::Kayako::Connected < Sequencer::Unit::Common::Provider::Named
  3. extend ::Sequencer::Unit::Import::Kayako::Requester
  4. private
  5. def connected
  6. response = self.class.perform_request(
  7. api_path: 'me',
  8. )
  9. response.is_a?(Net::HTTPOK)
  10. rescue => e
  11. logger.error e
  12. nil
  13. end
  14. end