class Batsir::Transformers::JSONInputTransformer

Public Instance Methods

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