Sha256: 7bc1c526b2068ba2431a9b67a20c654a62e8eabc9947ea48ed4301389385d297

Contents?: true

Size: 351 Bytes

Versions: 12

Compression:

Stored size: 351 Bytes

Contents

module DispatchRider
  module Logging
    class Translator

      class CompleteTranslator < BaseTranslator
        def initialize(message, duration:)
          super(message)
          @duration = duration
        end

        def translate
          message_info_fragment(@message).merge duration: @duration
        end
      end

    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
dispatch-rider-1.9.0 lib/dispatch-rider/logging/translator/complete_translator.rb
dispatch-rider-1.8.6 lib/dispatch-rider/logging/translator/complete_translator.rb
dispatch-rider-1.8.5 lib/dispatch-rider/logging/translator/complete_translator.rb
dispatch-rider-1.8.4 lib/dispatch-rider/logging/translator/complete_translator.rb
dispatch-rider-1.8.3 lib/dispatch-rider/logging/translator/complete_translator.rb
dispatch-rider-1.8.2 lib/dispatch-rider/logging/translator/complete_translator.rb
dispatch-rider-1.8.1 lib/dispatch-rider/logging/translator/complete_translator.rb
dispatch-rider-1.8.0 lib/dispatch-rider/logging/translator/complete_translator.rb
dispatch-rider-1.7.2 lib/dispatch-rider/logging/translator/complete_translator.rb
dispatch-rider-1.7.1 lib/dispatch-rider/logging/translator/complete_translator.rb
dispatch-rider-1.7.0 lib/dispatch-rider/logging/translator/complete_translator.rb
dispatch-rider-1.6.2 lib/dispatch-rider/logging/translator/complete_translator.rb