trabajo-afectivo/lib/sequencer/unit/import/freshdesk/request/time_entry.rb

23 lines
523 B
Ruby
Raw Normal View History

2021-05-25 12:30:12 +00:00
class Sequencer
class Unit
module Import
module Freshdesk
class Request < Sequencer::Unit::Common::Provider::Attribute
class TimeEntry < Sequencer::Unit::Import::Freshdesk::Request::Generic
attr_reader :ticket
def initialize(*)
super
@ticket = request_params.delete(:ticket)
end
def api_path
"tickets/#{ticket['id']}/time_entries"
end
end
end
end
end
end
end