Class: Moult::Flags::Staleness::Reason
- Inherits:
-
Struct
- Object
- Struct
- Moult::Flags::Staleness::Reason
- Defined in:
- lib/moult/flags/staleness.rb
Overview
One auditable note behind a staleness judgement. Local to the flags slice
(like Classification::Reason); categorical, so no delta.
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
61 62 63 |
# File 'lib/moult/flags/staleness.rb', line 61 def detail @detail end |
#rule ⇒ Object
Returns the value of attribute rule
61 62 63 |
# File 'lib/moult/flags/staleness.rb', line 61 def rule @rule end |
Instance Method Details
#to_h ⇒ Object
62 63 64 |
# File 'lib/moult/flags/staleness.rb', line 62 def to_h {rule: rule.to_s, detail: detail} end |