class Batsir::Transformers::JSONOutputTransformer

Public Instance Methods

execute(message) click to toggle source
# File lib/batsir/transformers/json_output_transformer.rb, line 4
def execute(message)
  begin
    JSON.dump(message)
  rescue JSON::JSONError => e
    raise Batsir::Errors::JSONOutputTransformError.new(e.message)
  end
end