Sha256: 9a2843b90c08234354e5cb64d090c5e2ccf3b5b22fe9280449c7202ab959f947

Contents?: true

Size: 335 Bytes

Versions: 2

Compression:

Stored size: 335 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

2 entries across 2 versions & 1 rubygems

Version Path
dispatch-rider-2.1.0 lib/dispatch-rider/logging/translator/stop_translator.rb
dispatch-rider-2.0.0 lib/dispatch-rider/logging/translator/stop_translator.rb