Class: Report::Csv
- Inherits:
-
Object
- Object
- Report::Csv
- Defined in:
- lib/report/csv.rb,
lib/report/csv/table.rb
Defined Under Namespace
Classes: Table
Instance Attribute Summary collapse
-
#report ⇒ Object
readonly
Returns the value of attribute report.
Instance Method Summary collapse
- #cleanup ⇒ Object
-
#initialize(report) ⇒ Csv
constructor
A new instance of Csv.
- #paths ⇒ Object
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
#report ⇒ Object (readonly)
Returns the value of attribute report.
7 8 9 |
# File 'lib/report/csv.rb', line 7 def report @report end |
Instance Method Details
#cleanup ⇒ Object
14 15 16 |
# File 'lib/report/csv.rb', line 14 def cleanup tables.each { |table| table.cleanup } end |
#paths ⇒ Object
11 12 13 |
# File 'lib/report/csv.rb', line 11 def paths tables.map { |table| table.path } end |