lib/dispatch-rider/logging/translator.rb in dispatch-rider-1.9.0 vs lib/dispatch-rider/logging/translator.rb in dispatch-rider-2.0.0
- old
+ new
@@ -1,8 +1,7 @@
module DispatchRider
module Logging
-
# Translates a message into a loggable hash based on its result.
class Translator
def self.translate(message, kind, **args)
klass = translator_class(kind)
fragment = klass.new(message, **args).translate
@@ -11,10 +10,9 @@
def self.translator_class(kind)
const_get("#{kind}_translator".classify)
end
end
-
end
end
require_relative 'translator/base_translator'
require_relative 'translator/complete_translator'