Class: Moult::HealthReport::FileView
- Inherits:
-
Struct
- Object
- Struct
- Moult::HealthReport::FileView
- Defined in:
- lib/moult/health_report.rb
Overview
One file's rolled-up health and the join keys that contributed to it.
components is a compact name => sub-score map (present components only).
Instance Attribute Summary collapse
-
#components ⇒ Object
Returns the value of attribute components.
-
#grade ⇒ Object
Returns the value of attribute grade.
-
#path ⇒ Object
Returns the value of attribute path.
-
#score ⇒ Object
Returns the value of attribute score.
-
#symbol_count ⇒ Object
Returns the value of attribute symbol_count.
-
#symbol_ids ⇒ Object
Returns the value of attribute symbol_ids.
Instance Method Summary collapse
Instance Attribute Details
#components ⇒ Object
Returns the value of attribute components
38 39 40 |
# File 'lib/moult/health_report.rb', line 38 def components @components end |
#grade ⇒ Object
Returns the value of attribute grade
38 39 40 |
# File 'lib/moult/health_report.rb', line 38 def grade @grade end |
#path ⇒ Object
Returns the value of attribute path
38 39 40 |
# File 'lib/moult/health_report.rb', line 38 def path @path end |
#score ⇒ Object
Returns the value of attribute score
38 39 40 |
# File 'lib/moult/health_report.rb', line 38 def score @score end |
#symbol_count ⇒ Object
Returns the value of attribute symbol_count
38 39 40 |
# File 'lib/moult/health_report.rb', line 38 def symbol_count @symbol_count end |
#symbol_ids ⇒ Object
Returns the value of attribute symbol_ids
38 39 40 |
# File 'lib/moult/health_report.rb', line 38 def symbol_ids @symbol_ids end |
Instance Method Details
#to_h ⇒ Object
39 40 41 42 43 44 45 46 47 48 |
# File 'lib/moult/health_report.rb', line 39 def to_h { path: path, score: score, grade: grade, components: components, symbol_ids: symbol_ids, symbol_count: symbol_count } end |