Class: Conrad::Formatters::JSON
- Inherits:
-
Object
- Object
- Conrad::Formatters::JSON
- Defined in:
- lib/conrad/formatters/json.rb
Overview
Formats a given Hash into a presentable JSON format.
Instance Method Summary collapse
-
#call(event) ⇒ String
Formats a given Hash into a presentable JSON format.
Instance Method Details
#call(event) ⇒ String
Formats a given Hash into a presentable JSON format.
15 16 17 |
# File 'lib/conrad/formatters/json.rb', line 15 def call(event) event.to_json end |