Class: Idcf::Cli::Lib::Convert::Formatter::JsonFormat

Inherits:
Base
  • Object
show all
Defined in:
lib/idcf/cli/lib/convert/formatter/json_format.rb

Overview

json formatter

Instance Method Summary collapse

Instance Method Details

#format(data) ⇒ Object



11
12
13
# File 'lib/idcf/cli/lib/convert/formatter/json_format.rb', line 11

def format(data)
  JSON.pretty_generate(data)
end