Class: Contrast::Agent::Reporting::Details::PathTraversalSemanticAnalysisDetails

Inherits:
ProtectRuleDetails show all
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

Constructor Details

#initializePathTraversalSemanticAnalysisDetails

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

#findingsArray<Symbol>

Returns:

  • (Array<Symbol>)


15
16
17
# File 'lib/contrast/agent/reporting/details/path_traversal_semantic_analysis_details.rb', line 15

def findings
  @findings
end

#pathString

Returns:



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_hashObject



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