Class: Pipeline::JSONReporter
- Inherits:
-
BaseReporter
- Object
- BaseReporter
- Pipeline::JSONReporter
- Defined in:
- lib/pipeline/reporters/json_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 ⇒ JSONReporter
constructor
A new instance of JSONReporter.
- #out(finding) ⇒ Object
Methods inherited from BaseReporter
Constructor Details
#initialize ⇒ JSONReporter
Returns a new instance of JSONReporter.
12 13 14 15 |
# File 'lib/pipeline/reporters/json_reporter.rb', line 12 def initialize() @name = "JSONReporter" @format = :to_json end |
Instance Attribute Details
#format ⇒ Object
Returns the value of attribute format.
10 11 12 |
# File 'lib/pipeline/reporters/json_reporter.rb', line 10 def format @format end |
#name ⇒ Object
Returns the value of attribute name.
10 11 12 |
# File 'lib/pipeline/reporters/json_reporter.rb', line 10 def name @name end |
Instance Method Details
#out(finding) ⇒ Object
17 18 19 |
# File 'lib/pipeline/reporters/json_reporter.rb', line 17 def out(finding) finding.to_json end |