Class: Autoperf::Display::CSV

Inherits:
Object
  • Object
show all
Defined in:
lib/autoperf/display/csv.rb

Instance Method Summary collapse

Constructor Details

#initialize(results, report = nil) ⇒ CSV

Returns a new instance of CSV.



4
5
6
# File 'lib/autoperf/display/csv.rb', line 4

def initialize results, report=nil
  @table = ::Autoperf::Display::Console.new(results, report).table
end

Instance Method Details



16
17
18
# File 'lib/autoperf/display/csv.rb', line 16

def print
  puts to_s
end

#to_csvObject



12
13
14
# File 'lib/autoperf/display/csv.rb', line 12

def to_csv
  to_s
end

#to_sObject



8
9
10
# File 'lib/autoperf/display/csv.rb', line 8

def to_s
  @table.to_csv
end