Class: Report::Csv

Inherits:
Object
  • Object
show all
Defined in:
lib/report/csv.rb,
lib/report/csv/table.rb

Defined Under Namespace

Classes: Table

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(report) ⇒ Csv

Returns a new instance of Csv.



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

def initialize(report)
  @report = report
end

Instance Attribute Details

#reportObject (readonly)

Returns the value of attribute report.



7
8
9
# File 'lib/report/csv.rb', line 7

def report
  @report
end

Instance Method Details

#cleanupObject



14
15
16
# File 'lib/report/csv.rb', line 14

def cleanup
  tables.each { |table| table.cleanup }
end

#pathsObject



11
12
13
# File 'lib/report/csv.rb', line 11

def paths
  tables.map { |table| table.path }
end