Class: Hone::Formatters::JSON
Constant Summary collapse
- FORMAT_VERSION =
"1.0.0"
Constants included from Filterable
Instance Method Summary collapse
- #format ⇒ Object
-
#initialize(findings, options = {}) ⇒ JSON
constructor
A new instance of JSON.
Methods included from Filterable
#filter_cold, #format_percent, #priority_label
Constructor Details
#initialize(findings, options = {}) ⇒ JSON
Returns a new instance of JSON.
10 11 12 13 14 |
# File 'lib/hone/formatters/json.rb', line 10 def initialize(findings, = {}) super @profile_path = [:profile_path] @mode = .fetch(:mode, "correlated") end |
Instance Method Details
#format ⇒ Object
16 17 18 |
# File 'lib/hone/formatters/json.rb', line 16 def format ::JSON.pretty_generate(build_output) end |