Class: PromptWarden::CLI::EventFormatter

Inherits:
Object
  • Object
show all
Defined in:
lib/prompt_warden/cli.rb

Class Method Summary collapse

Class Method Details

.format(event, json: false) ⇒ Object



10
11
12
13
14
15
16
# File 'lib/prompt_warden/cli.rb', line 10

def self.format(event, json: false)
  if json
    event.to_h.to_json
  else
    format_human_readable(event)
  end
end