class DispatchRider::Logging::Translator::StopTranslator
Public Class Methods
new(message, reason:)
click to toggle source
Calls superclass method
DispatchRider::Logging::Translator::BaseTranslator::new
# File lib/dispatch-rider/logging/translator/stop_translator.rb, line 6 def initialize(message, reason:) super(message) @reason = reason end
Public Instance Methods
translate()
click to toggle source
# File lib/dispatch-rider/logging/translator/stop_translator.rb, line 11 def translate message_info_fragment(@message).merge reason: @reason end