Class: Moult::Flags::Staleness::Assessment
- Inherits:
-
Struct
- Object
- Struct
- Moult::Flags::Staleness::Assessment
- Defined in:
- lib/moult/flags/staleness.rb
Overview
The graded result: the staleness status, its confidence in [0, 1], and the reasons behind them.
Instance Attribute Summary collapse
-
#confidence ⇒ Object
Returns the value of attribute confidence.
-
#reasons ⇒ Object
Returns the value of attribute reasons.
-
#status ⇒ Object
Returns the value of attribute status.
Instance Method Summary collapse
Instance Attribute Details
#confidence ⇒ Object
Returns the value of attribute confidence
69 70 71 |
# File 'lib/moult/flags/staleness.rb', line 69 def confidence @confidence end |
#reasons ⇒ Object
Returns the value of attribute reasons
69 70 71 |
# File 'lib/moult/flags/staleness.rb', line 69 def reasons @reasons end |
#status ⇒ Object
Returns the value of attribute status
69 70 71 |
# File 'lib/moult/flags/staleness.rb', line 69 def status @status end |
Instance Method Details
#to_h ⇒ Object
70 71 72 |
# File 'lib/moult/flags/staleness.rb', line 70 def to_h {status: status, confidence: confidence, reasons: reasons.map(&:to_h)} end |