Class: Pinspec::Emit::StabilityFilter::Verdict
- Inherits:
-
Data
- Object
- Data
- Pinspec::Emit::StabilityFilter::Verdict
- Defined in:
- lib/pinspec/emit/stability_filter.rb
Instance Attribute Summary collapse
-
#case_id ⇒ Object
readonly
Returns the value of attribute case_id.
-
#cause ⇒ Object
readonly
Returns the value of attribute cause.
-
#diff ⇒ Object
readonly
Returns the value of attribute diff.
-
#observation ⇒ Object
readonly
Returns the value of attribute observation.
-
#stable ⇒ Object
readonly
Returns the value of attribute stable.
Instance Method Summary collapse
Instance Attribute Details
#case_id ⇒ Object (readonly)
Returns the value of attribute case_id
16 17 18 |
# File 'lib/pinspec/emit/stability_filter.rb', line 16 def case_id @case_id end |
#cause ⇒ Object (readonly)
Returns the value of attribute cause
16 17 18 |
# File 'lib/pinspec/emit/stability_filter.rb', line 16 def cause @cause end |
#diff ⇒ Object (readonly)
Returns the value of attribute diff
16 17 18 |
# File 'lib/pinspec/emit/stability_filter.rb', line 16 def diff @diff end |
#observation ⇒ Object (readonly)
Returns the value of attribute observation
16 17 18 |
# File 'lib/pinspec/emit/stability_filter.rb', line 16 def observation @observation end |
#stable ⇒ Object (readonly)
Returns the value of attribute stable
16 17 18 |
# File 'lib/pinspec/emit/stability_filter.rb', line 16 def stable @stable end |
Instance Method Details
#stable? ⇒ Boolean
17 18 19 |
# File 'lib/pinspec/emit/stability_filter.rb', line 17 def stable? stable end |
#to_s ⇒ Object
21 22 23 |
# File 'lib/pinspec/emit/stability_filter.rb', line 21 def to_s stable? ? "#{case_id} stable" : "#{case_id} unstable (#{cause})" end |