Class: Contrast::Agent::Reporting::Details::PathTraversalSemanticAnalysisDetails
- Inherits:
-
ProtectRuleDetails
- Object
- ProtectRuleDetails
- Contrast::Agent::Reporting::Details::PathTraversalSemanticAnalysisDetails
- Defined in:
- lib/contrast/agent/reporting/details/path_traversal_semantic_analysis_details.rb
Overview
PathTraversalDetails IA result details info.
Instance Attribute Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ PathTraversalSemanticAnalysisDetails
constructor
A new instance of PathTraversalSemanticAnalysisDetails.
- #to_controlled_hash ⇒ Object
Constructor Details
#initialize ⇒ PathTraversalSemanticAnalysisDetails
Returns a new instance of PathTraversalSemanticAnalysisDetails.
17 18 19 20 |
# File 'lib/contrast/agent/reporting/details/path_traversal_semantic_analysis_details.rb', line 17 def initialize @findings = [] super end |
Instance Attribute Details
#findings ⇒ Array<Symbol>
15 16 17 |
# File 'lib/contrast/agent/reporting/details/path_traversal_semantic_analysis_details.rb', line 15 def findings @findings end |
#path ⇒ String
13 14 15 |
# File 'lib/contrast/agent/reporting/details/path_traversal_semantic_analysis_details.rb', line 13 def path @path end |
Instance Method Details
#to_controlled_hash ⇒ Object
22 23 24 25 26 27 |
# File 'lib/contrast/agent/reporting/details/path_traversal_semantic_analysis_details.rb', line 22 def to_controlled_hash { path: path, findings: findings&.map(&:to_s) } end |