Class: Moult::Health::Score::Component

Inherits:
Struct
  • Object
show all
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

Instance Attribute Details

#categoryObject

Returns the value of attribute category

Returns:

  • (Object)

    the current value of category



91
92
93
# File 'lib/moult/health/score.rb', line 91

def category
  @category
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



91
92
93
# File 'lib/moult/health/score.rb', line 91

def name
  @name
end

#reasonsObject

Returns the value of attribute reasons

Returns:

  • (Object)

    the current value of reasons



91
92
93
# File 'lib/moult/health/score.rb', line 91

def reasons
  @reasons
end

#scoreObject

Returns the value of attribute score

Returns:

  • (Object)

    the current value of score



91
92
93
# File 'lib/moult/health/score.rb', line 91

def score
  @score
end

#statsObject

Returns the value of attribute stats

Returns:

  • (Object)

    the current value of stats



91
92
93
# File 'lib/moult/health/score.rb', line 91

def stats
  @stats
end