# frozen_string_literal: true module Bugscriber module Helpers class << self def create_track(type:, method:, started_at:, finished_at:, external_process_id:, payload:) body = Bugscriber::Decorators::TrackDecorator.create_body(type: type, method: method, started_at: started_at, finished_at: finished_at, external_process_id: external_process_id, payload: payload) Bugscriber::Client.new.tracks.create(body) end end end end