Class: Pipeline::JSONReporter

Inherits:
BaseReporter show all
Defined in:
lib/pipeline/reporters/json_reporter.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from BaseReporter

#run_report

Constructor Details

#initializeJSONReporter

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

#formatObject

Returns the value of attribute format.



10
11
12
# File 'lib/pipeline/reporters/json_reporter.rb', line 10

def format
  @format
end

#nameObject

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