Sha256: 3f4e5a1ae3600e8bb36496899d105eb864d0303df5bad2f573a5c5f5db9c8345

Contents?: true

Size: 337 Bytes

Versions: 12

Compression:

Stored size: 337 Bytes

Contents

module DispatchRider
  module Logging
    class Translator

      class StopTranslator < BaseTranslator
        def initialize(message, reason:)
          super(message)
          @reason = reason
        end

        def translate
          message_info_fragment(@message).merge reason: @reason
        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/stop_translator.rb
dispatch-rider-1.8.6 lib/dispatch-rider/logging/translator/stop_translator.rb
dispatch-rider-1.8.5 lib/dispatch-rider/logging/translator/stop_translator.rb
dispatch-rider-1.8.4 lib/dispatch-rider/logging/translator/stop_translator.rb
dispatch-rider-1.8.3 lib/dispatch-rider/logging/translator/stop_translator.rb
dispatch-rider-1.8.2 lib/dispatch-rider/logging/translator/stop_translator.rb
dispatch-rider-1.8.1 lib/dispatch-rider/logging/translator/stop_translator.rb
dispatch-rider-1.8.0 lib/dispatch-rider/logging/translator/stop_translator.rb
dispatch-rider-1.7.2 lib/dispatch-rider/logging/translator/stop_translator.rb
dispatch-rider-1.7.1 lib/dispatch-rider/logging/translator/stop_translator.rb
dispatch-rider-1.7.0 lib/dispatch-rider/logging/translator/stop_translator.rb
dispatch-rider-1.6.2 lib/dispatch-rider/logging/translator/stop_translator.rb