conversation.rb 448 B

12345678910111213141516
  1. # Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. class Sequencer::Unit::Import::Freshdesk::Request < Sequencer::Unit::Common::Provider::Attribute
  3. class Conversation < Sequencer::Unit::Import::Freshdesk::Request::Generic
  4. attr_reader :ticket
  5. def initialize(...)
  6. super
  7. @ticket = request_params.delete(:ticket)
  8. end
  9. def api_path
  10. "tickets/#{ticket['id']}/conversations"
  11. end
  12. end
  13. end