Class: SixthSense::Result::Finding
- Inherits:
-
Struct
- Object
- Struct
- SixthSense::Result::Finding
- Defined in:
- lib/sixth_sense/result.rb
Instance Attribute Summary collapse
-
#analyzer_id ⇒ Object
Returns the value of attribute analyzer_id.
-
#location ⇒ Object
Returns the value of attribute location.
-
#message ⇒ Object
Returns the value of attribute message.
-
#references ⇒ Object
Returns the value of attribute references.
-
#rule_id ⇒ Object
Returns the value of attribute rule_id.
-
#severity ⇒ Object
Returns the value of attribute severity.
-
#suggestion ⇒ Object
Returns the value of attribute suggestion.
Instance Method Summary collapse
Instance Attribute Details
#analyzer_id ⇒ Object
Returns the value of attribute analyzer_id
17 18 19 |
# File 'lib/sixth_sense/result.rb', line 17 def analyzer_id @analyzer_id end |
#location ⇒ Object
Returns the value of attribute location
17 18 19 |
# File 'lib/sixth_sense/result.rb', line 17 def location @location end |
#message ⇒ Object
Returns the value of attribute message
17 18 19 |
# File 'lib/sixth_sense/result.rb', line 17 def @message end |
#references ⇒ Object
Returns the value of attribute references
17 18 19 |
# File 'lib/sixth_sense/result.rb', line 17 def references @references end |
#rule_id ⇒ Object
Returns the value of attribute rule_id
17 18 19 |
# File 'lib/sixth_sense/result.rb', line 17 def rule_id @rule_id end |
#severity ⇒ Object
Returns the value of attribute severity
17 18 19 |
# File 'lib/sixth_sense/result.rb', line 17 def severity @severity end |
#suggestion ⇒ Object
Returns the value of attribute suggestion
17 18 19 |
# File 'lib/sixth_sense/result.rb', line 17 def suggestion @suggestion end |
Instance Method Details
#to_h ⇒ Object
27 28 29 30 31 32 33 34 35 36 37 |
# File 'lib/sixth_sense/result.rb', line 27 def to_h { analyzer_id: analyzer_id, rule_id: rule_id, severity: severity, location: location&.to_h, message: , references: references.map(&:to_h), suggestion: suggestion } end |