Class: JsonResults
Instance Method Summary collapse
Instance Method Details
#render(results) ⇒ Object
6 7 8 9 10 11 12 |
# File 'lib/cfn-nag/result_view/json_results.rb', line 6 def render(results) hashified_results = results.each do |result| result[:file_results][:violations] = result[:file_results][:violations].map(&:to_h) end puts JSON.pretty_generate(hashified_results) end |