Class: Rails::Guarddog::Reporters::HtmlReporter
- Inherits:
-
Object
- Object
- Rails::Guarddog::Reporters::HtmlReporter
- Defined in:
- lib/rails/guarddog/reporters/html_reporter.rb
Instance Method Summary collapse
-
#initialize(findings) ⇒ HtmlReporter
constructor
A new instance of HtmlReporter.
- #report(output_path = "guarddog_report.html") ⇒ Object
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 |