Class: Conrad::Formatters::JSON

Inherits:
Object
  • Object
show all
Defined in:
lib/conrad/formatters/json.rb

Overview

Formats a given Hash into a presentable JSON format.

Instance Method Summary collapse

Instance Method Details

#call(event) ⇒ String

Formats a given Hash into a presentable JSON format.

Parameters:

  • event (Hash)

    event to be formatted

Returns:

  • (String)

    JSON formatted string



15
16
17
# File 'lib/conrad/formatters/json.rb', line 15

def call(event)
  event.to_json
end