Module: BooticCli::Formatters

Defined in:
lib/bootic_cli/formatters.rb

Defined Under Namespace

Classes: Csv, Json, Table

Constant Summary collapse

FMTS =
{
  table: Table,
  json: Json,
  csv: Csv
}

Class Method Summary collapse

Class Method Details

.format(k, data) ⇒ Object



61
62
63
# File 'lib/bootic_cli/formatters.rb', line 61

def self.format(k, data)
  FMTS[k.to_sym].new.format(data)
end