Class: Moult::Health::Score::Component
- Inherits:
-
Struct
- Object
- Struct
- Moult::Health::Score::Component
- Defined in:
- lib/moult/health/score.rb
Overview
A graded component: a health sub-score in [0, 1] (1.0 = healthy), the stats backing it, and the reasons behind it.
Instance Attribute Summary collapse
-
#category ⇒ Object
Returns the value of attribute category.
-
#name ⇒ Object
Returns the value of attribute name.
-
#reasons ⇒ Object
Returns the value of attribute reasons.
-
#score ⇒ Object
Returns the value of attribute score.
-
#stats ⇒ Object
Returns the value of attribute stats.
Instance Attribute Details
#category ⇒ Object
Returns the value of attribute category
91 92 93 |
# File 'lib/moult/health/score.rb', line 91 def category @category end |
#name ⇒ Object
Returns the value of attribute name
91 92 93 |
# File 'lib/moult/health/score.rb', line 91 def name @name end |
#reasons ⇒ Object
Returns the value of attribute reasons
91 92 93 |
# File 'lib/moult/health/score.rb', line 91 def reasons @reasons end |
#score ⇒ Object
Returns the value of attribute score
91 92 93 |
# File 'lib/moult/health/score.rb', line 91 def score @score end |
#stats ⇒ Object
Returns the value of attribute stats
91 92 93 |
# File 'lib/moult/health/score.rb', line 91 def stats @stats end |