Class: Moult::HealthReport::ComponentView
- Inherits:
-
Struct
- Object
- Struct
- Moult::HealthReport::ComponentView
- Defined in:
- lib/moult/health_report.rb
Overview
One component of the composite, as serialized. present false means the
analysis was skipped (e.g. no --coverage) or errored; then score and
normalized_weight are null and diagnostic says why.
Instance Attribute Summary collapse
-
#category ⇒ Object
Returns the value of attribute category.
-
#diagnostic ⇒ Object
Returns the value of attribute diagnostic.
-
#name ⇒ Object
Returns the value of attribute name.
-
#normalized_weight ⇒ Object
Returns the value of attribute normalized_weight.
-
#present ⇒ Object
Returns the value of attribute present.
-
#reasons ⇒ Object
Returns the value of attribute reasons.
-
#score ⇒ Object
Returns the value of attribute score.
-
#summary ⇒ Object
Returns the value of attribute summary.
-
#weight ⇒ Object
Returns the value of attribute weight.
Instance Method Summary collapse
Instance Attribute Details
#category ⇒ Object
Returns the value of attribute category
19 20 21 |
# File 'lib/moult/health_report.rb', line 19 def category @category end |
#diagnostic ⇒ Object
Returns the value of attribute diagnostic
19 20 21 |
# File 'lib/moult/health_report.rb', line 19 def diagnostic @diagnostic end |
#name ⇒ Object
Returns the value of attribute name
19 20 21 |
# File 'lib/moult/health_report.rb', line 19 def name @name end |
#normalized_weight ⇒ Object
Returns the value of attribute normalized_weight
19 20 21 |
# File 'lib/moult/health_report.rb', line 19 def normalized_weight @normalized_weight end |
#present ⇒ Object
Returns the value of attribute present
19 20 21 |
# File 'lib/moult/health_report.rb', line 19 def present @present end |
#reasons ⇒ Object
Returns the value of attribute reasons
19 20 21 |
# File 'lib/moult/health_report.rb', line 19 def reasons @reasons end |
#score ⇒ Object
Returns the value of attribute score
19 20 21 |
# File 'lib/moult/health_report.rb', line 19 def score @score end |
#summary ⇒ Object
Returns the value of attribute summary
19 20 21 |
# File 'lib/moult/health_report.rb', line 19 def summary @summary end |
#weight ⇒ Object
Returns the value of attribute weight
19 20 21 |
# File 'lib/moult/health_report.rb', line 19 def weight @weight end |
Instance Method Details
#to_h ⇒ Object
21 22 23 24 25 26 27 28 29 30 31 32 33 |
# File 'lib/moult/health_report.rb', line 21 def to_h { name: name, category: category, present: present, score: score, weight: weight, normalized_weight: normalized_weight, summary: summary, reasons: reasons.map(&:to_h), diagnostic: diagnostic } end |