Class: Moult::Boundaries::Severity::Reason
- Inherits:
-
Struct
- Object
- Struct
- Moult::Boundaries::Severity::Reason
- Defined in:
- lib/moult/boundaries/severity.rb
Overview
One auditable note behind a classification. Mirrors the shared rule/detail
reason shape, but a severity is categorical (not a delta-sum), so it carries
no delta. Kept local so the boundaries slice does not couple to the
dead-code or duplication Reason structs.
Instance Attribute Summary collapse
-
#detail ⇒ Object
Returns the value of attribute detail.
-
#rule ⇒ Object
Returns the value of attribute rule.
Instance Method Summary collapse
Instance Attribute Details
#detail ⇒ Object
Returns the value of attribute detail
51 52 53 |
# File 'lib/moult/boundaries/severity.rb', line 51 def detail @detail end |
#rule ⇒ Object
Returns the value of attribute rule
51 52 53 |
# File 'lib/moult/boundaries/severity.rb', line 51 def rule @rule end |
Instance Method Details
#to_h ⇒ Object
52 53 54 |
# File 'lib/moult/boundaries/severity.rb', line 52 def to_h {rule: rule.to_s, detail: detail} end |