Class: Hashira::Analysis::Finding
- Inherits:
-
Data
- Object
- Data
- Hashira::Analysis::Finding
- Defined in:
- lib/hashira/analysis/finding.rb
Instance Attribute Summary collapse
-
#cycle ⇒ Object
readonly
Returns the value of attribute cycle.
-
#evidence ⇒ Object
readonly
Returns the value of attribute evidence.
-
#kind ⇒ Object
readonly
Returns the value of attribute kind.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
-
#package ⇒ Object
readonly
Returns the value of attribute package.
Instance Method Summary collapse
-
#initialize(cycle: nil, **rest) ⇒ Finding
constructor
A new instance of Finding.
- #to_h ⇒ Object
Constructor Details
#initialize(cycle: nil, **rest) ⇒ Finding
Returns a new instance of Finding.
6 |
# File 'lib/hashira/analysis/finding.rb', line 6 def initialize(cycle: nil, **rest) = super |
Instance Attribute Details
#cycle ⇒ Object (readonly)
Returns the value of attribute cycle
5 6 7 |
# File 'lib/hashira/analysis/finding.rb', line 5 def cycle @cycle end |
#evidence ⇒ Object (readonly)
Returns the value of attribute evidence
5 6 7 |
# File 'lib/hashira/analysis/finding.rb', line 5 def evidence @evidence end |
#kind ⇒ Object (readonly)
Returns the value of attribute kind
5 6 7 |
# File 'lib/hashira/analysis/finding.rb', line 5 def kind @kind end |
#message ⇒ Object (readonly)
Returns the value of attribute message
5 6 7 |
# File 'lib/hashira/analysis/finding.rb', line 5 def @message end |
#package ⇒ Object (readonly)
Returns the value of attribute package
5 6 7 |
# File 'lib/hashira/analysis/finding.rb', line 5 def package @package end |
Instance Method Details
#to_h ⇒ Object
8 |
# File 'lib/hashira/analysis/finding.rb', line 8 def to_h = super.compact |