Class: Moult::Flags::Classification::Reason
- Inherits:
-
Struct
- Object
- Struct
- Moult::Flags::Classification::Reason
- Defined in:
- lib/moult/flags/classification.rb
Overview
One auditable note behind a classification. Mirrors the shared rule/detail
reason shape; a classification is categorical (not a delta-sum) so it carries
no delta, like Boundaries::Severity::Reason. Kept local so the flags slice
does not couple to the dead-code/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
37 38 39 |
# File 'lib/moult/flags/classification.rb', line 37 def detail @detail end |
#rule ⇒ Object
Returns the value of attribute rule
37 38 39 |
# File 'lib/moult/flags/classification.rb', line 37 def rule @rule end |
Instance Method Details
#to_h ⇒ Object
38 39 40 |
# File 'lib/moult/flags/classification.rb', line 38 def to_h {rule: rule.to_s, detail: detail} end |