Class: ZAPv2::Reports
- Inherits:
-
Object
- Object
- ZAPv2::Reports
- Defined in:
- lib/zap/v2apis/reports.rb
Instance Method Summary collapse
- #generate(title, template, theme, description, contexts, sites, sections, included_confidences, included_risks, report_file_name, report_file_name_pattern, report_dir, display) ⇒ Object
-
#initialize(client) ⇒ Reports
constructor
A new instance of Reports.
- #template_details(template) ⇒ Object
- #templates ⇒ Object
Constructor Details
#initialize(client) ⇒ Reports
5 6 7 |
# File 'lib/zap/v2apis/reports.rb', line 5 def initialize(client) @client = client end |
Instance Method Details
#generate(title, template, theme, description, contexts, sites, sections, included_confidences, included_risks, report_file_name, report_file_name_pattern, report_dir, display) ⇒ Object
17 18 19 |
# File 'lib/zap/v2apis/reports.rb', line 17 def generate(title, template, theme, description, contexts, sites, sections, included_confidences, included_risks, report_file_name, report_file_name_pattern, report_dir, display) @client.get("/JSON/reports/action/generate/?title=#{title}&template=#{template}&theme=#{theme}&description=#{description}&contexts=#{contexts}&sites=#{sites}§ions=#{sections}&includedConfidences=#{included_confidences}&includedRisks=#{included_risks}&reportFileName=#{report_file_name}&reportFileNamePattern=#{report_file_name_pattern}&reportDir=#{report_dir}&display=#{display}") end |
#template_details(template) ⇒ Object
9 10 11 |
# File 'lib/zap/v2apis/reports.rb', line 9 def template_details(template) @client.get("/JSON/reports/view/templateDetails/?template=#{template}") end |
#templates ⇒ Object
13 14 15 |
# File 'lib/zap/v2apis/reports.rb', line 13 def templates @client.get('/JSON/reports/view/templates/') end |