class SNMPTableViewer::Formatter::CSV

Formatting class for CSV output.

Public Instance Methods

output() click to toggle source

Output the data (and headings if provided). @return [String] the CSV data

# File lib/snmp_table_viewer/formatter/csv.rb, line 7
def output()
  data_with_headings.map(&:to_csv).join
end