Sha256: 4479f10500b8fe676d25f44378de0013dfb8ce261ff544c8f067649ecf23e9aa

Contents?: true

Size: 542 Bytes

Versions: 1

Compression:

Stored size: 542 Bytes

Contents

# frozen_string_literal: true

module Bugscriber
  module Decorators
    class TrackDecorator
      class << self
        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
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
bugscriber-0.1.0 lib/bugscriber/decorators/track_decorator.rb