Class: Pipeline::CSVReporter
- Inherits:
-
BaseReporter
- Object
- BaseReporter
- Pipeline::CSVReporter
- Defined in:
- lib/pipeline/reporters/csv_reporter.rb
Instance Attribute Summary collapse
-
#format ⇒ Object
Returns the value of attribute format.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize ⇒ CSVReporter
constructor
A new instance of CSVReporter.
- #out(finding) ⇒ Object
Methods inherited from BaseReporter
Constructor Details
#initialize ⇒ CSVReporter
Returns a new instance of CSVReporter.
10 11 12 13 |
# File 'lib/pipeline/reporters/csv_reporter.rb', line 10 def initialize() @name = "CSVReporter" @format = :to_csv end |
Instance Attribute Details
#format ⇒ Object
Returns the value of attribute format.
8 9 10 |
# File 'lib/pipeline/reporters/csv_reporter.rb', line 8 def format @format end |
#name ⇒ Object
Returns the value of attribute name.
8 9 10 |
# File 'lib/pipeline/reporters/csv_reporter.rb', line 8 def name @name end |
Instance Method Details
#out(finding) ⇒ Object
15 16 17 |
# File 'lib/pipeline/reporters/csv_reporter.rb', line 15 def out(finding) finding.to_csv end |