Class: Bugscriber::Decorators::TrackDecorator

Inherits:
Object
  • Object
show all
Defined in:
lib/bugscriber/decorators/track_decorator.rb

Class Method Summary collapse

Class Method Details

.create_body(type:, method:, started_at:, finished_at:, external_process_id:, payload:) ⇒ Object



7
8
9
10
11
12
13
14
15
16
17
# File 'lib/bugscriber/decorators/track_decorator.rb', line 7

def create_body(type:, method:, started_at:, finished_at:, external_process_id:, payload:)
  {
    type: type,
    method: method,
    started_at: started_at,
    finished_at: finished_at,
    external_process_id: external_process_id,
    payload: payload,
    environment: Bugscriber.config.environment
  }
end