trabajo-afectivo/lib/sequencer/unit/import/freshdesk/request/conversation.rb
2022-01-01 14:38:12 +01:00

24 lines
606 B
Ruby

# Copyright (C) 2012-2022 Zammad Foundation, https://zammad-foundation.org/
class Sequencer
class Unit
module Import
module Freshdesk
class Request < Sequencer::Unit::Common::Provider::Attribute
class Conversation < Sequencer::Unit::Import::Freshdesk::Request::Generic
attr_reader :ticket
def initialize(...)
super
@ticket = request_params.delete(:ticket)
end
def api_path
"tickets/#{ticket['id']}/conversations"
end
end
end
end
end
end
end