Class: Rails::Guarddog::Reporters::HtmlReporter

Inherits:
Object
  • Object
show all
Defined in:
lib/rails/guarddog/reporters/html_reporter.rb

Instance Method Summary collapse

Constructor Details

#initialize(findings) ⇒ HtmlReporter

Returns a new instance of HtmlReporter.



5
6
7
# File 'lib/rails/guarddog/reporters/html_reporter.rb', line 5

def initialize(findings)
  @findings = findings
end

Instance Method Details

#report(output_path = "guarddog_report.html") ⇒ Object



9
10
11
12
13
# File 'lib/rails/guarddog/reporters/html_reporter.rb', line 9

def report(output_path = "guarddog_report.html")
  html = generate_html
  File.write(output_path, html)
  output_path
end