Class: BooticCli::Formatters::Csv

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

Instance Method Summary collapse

Instance Method Details

#format(data) ⇒ Object



46
47
48
49
50
51
52
# File 'lib/bootic_cli/formatters.rb', line 46

def format(data)
  CSV.generate do |csv|
    data.each do |row|
      csv << row
    end
  end
end