Module: Bugscriber::Helpers
- Defined in:
- lib/bugscriber/helpers.rb
Class Method Summary collapse
Class Method Details
.create_track(type:, method:, started_at:, finished_at:, external_process_id:, payload:) ⇒ Object
6 7 8 9 10 11 12 13 14 15 |
# File 'lib/bugscriber/helpers.rb', line 6 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 |