Class: MetzScan::Analyzers::InheritanceDescendants::Finding
- Inherits:
-
Struct
- Object
- Struct
- MetzScan::Analyzers::InheritanceDescendants::Finding
- Defined in:
- lib/metz_scan/analyzers/inheritance_descendants/finding.rb
Instance Attribute Summary collapse
-
#base_name ⇒ Object
Returns the value of attribute base_name.
-
#confidence ⇒ Object
Returns the value of attribute confidence.
-
#descendants ⇒ Object
Returns the value of attribute descendants.
-
#locations ⇒ Object
Returns the value of attribute locations.
-
#message ⇒ Object
Returns the value of attribute message.
-
#primary_location ⇒ Object
Returns the value of attribute primary_location.
-
#project_analyzer_metadata ⇒ Object
Returns the value of attribute project_analyzer_metadata.
-
#project_analyzer_status ⇒ Object
Returns the value of attribute project_analyzer_status.
-
#rule_id ⇒ Object
Returns the value of attribute rule_id.
-
#source ⇒ Object
Returns the value of attribute source.
-
#suggested_next_moves ⇒ Object
Returns the value of attribute suggested_next_moves.
-
#triage_severity ⇒ Object
Returns the value of attribute triage_severity.
-
#triage_summary ⇒ Object
Returns the value of attribute triage_summary.
-
#why_it_matters ⇒ Object
Returns the value of attribute why_it_matters.
Instance Method Summary collapse
Instance Attribute Details
#base_name ⇒ Object
Returns the value of attribute base_name
6 7 8 |
# File 'lib/metz_scan/analyzers/inheritance_descendants/finding.rb', line 6 def base_name @base_name end |
#confidence ⇒ Object
Returns the value of attribute confidence
6 7 8 |
# File 'lib/metz_scan/analyzers/inheritance_descendants/finding.rb', line 6 def confidence @confidence end |
#descendants ⇒ Object
Returns the value of attribute descendants
6 7 8 |
# File 'lib/metz_scan/analyzers/inheritance_descendants/finding.rb', line 6 def descendants @descendants end |
#locations ⇒ Object
Returns the value of attribute locations
6 7 8 |
# File 'lib/metz_scan/analyzers/inheritance_descendants/finding.rb', line 6 def locations @locations end |
#message ⇒ Object
Returns the value of attribute message
6 7 8 |
# File 'lib/metz_scan/analyzers/inheritance_descendants/finding.rb', line 6 def @message end |
#primary_location ⇒ Object
Returns the value of attribute primary_location
6 7 8 |
# File 'lib/metz_scan/analyzers/inheritance_descendants/finding.rb', line 6 def primary_location @primary_location end |
#project_analyzer_metadata ⇒ Object
Returns the value of attribute project_analyzer_metadata
6 7 8 |
# File 'lib/metz_scan/analyzers/inheritance_descendants/finding.rb', line 6 def @project_analyzer_metadata end |
#project_analyzer_status ⇒ Object
Returns the value of attribute project_analyzer_status
6 7 8 |
# File 'lib/metz_scan/analyzers/inheritance_descendants/finding.rb', line 6 def project_analyzer_status @project_analyzer_status end |
#rule_id ⇒ Object
Returns the value of attribute rule_id
6 7 8 |
# File 'lib/metz_scan/analyzers/inheritance_descendants/finding.rb', line 6 def rule_id @rule_id end |
#source ⇒ Object
Returns the value of attribute source
6 7 8 |
# File 'lib/metz_scan/analyzers/inheritance_descendants/finding.rb', line 6 def source @source end |
#suggested_next_moves ⇒ Object
Returns the value of attribute suggested_next_moves
6 7 8 |
# File 'lib/metz_scan/analyzers/inheritance_descendants/finding.rb', line 6 def suggested_next_moves @suggested_next_moves end |
#triage_severity ⇒ Object
Returns the value of attribute triage_severity
6 7 8 |
# File 'lib/metz_scan/analyzers/inheritance_descendants/finding.rb', line 6 def triage_severity @triage_severity end |
#triage_summary ⇒ Object
Returns the value of attribute triage_summary
6 7 8 |
# File 'lib/metz_scan/analyzers/inheritance_descendants/finding.rb', line 6 def triage_summary @triage_summary end |
#why_it_matters ⇒ Object
Returns the value of attribute why_it_matters
6 7 8 |
# File 'lib/metz_scan/analyzers/inheritance_descendants/finding.rb', line 6 def why_it_matters @why_it_matters end |
Instance Method Details
#occurrences ⇒ Object
9 |
# File 'lib/metz_scan/analyzers/inheritance_descendants/finding.rb', line 9 def occurrences = [primary_location].compact |
#report_occurrences ⇒ Object
11 12 13 |
# File 'lib/metz_scan/analyzers/inheritance_descendants/finding.rb', line 11 def report_occurrences occurrences.map { |occurrence| Occurrence.from(occurrence, context: base_name) } end |