Class: Moult::HealthReport::FileView

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

Instance Method Summary collapse

Instance Attribute Details

#componentsObject

Returns the value of attribute components

Returns:

  • (Object)

    the current value of components



38
39
40
# File 'lib/moult/health_report.rb', line 38

def components
  @components
end

#gradeObject

Returns the value of attribute grade

Returns:

  • (Object)

    the current value of grade



38
39
40
# File 'lib/moult/health_report.rb', line 38

def grade
  @grade
end

#pathObject

Returns the value of attribute path

Returns:

  • (Object)

    the current value of path



38
39
40
# File 'lib/moult/health_report.rb', line 38

def path
  @path
end

#scoreObject

Returns the value of attribute score

Returns:

  • (Object)

    the current value of score



38
39
40
# File 'lib/moult/health_report.rb', line 38

def score
  @score
end

#symbol_countObject

Returns the value of attribute symbol_count

Returns:

  • (Object)

    the current value of symbol_count



38
39
40
# File 'lib/moult/health_report.rb', line 38

def symbol_count
  @symbol_count
end

#symbol_idsObject

Returns the value of attribute symbol_ids

Returns:

  • (Object)

    the current value of symbol_ids



38
39
40
# File 'lib/moult/health_report.rb', line 38

def symbol_ids
  @symbol_ids
end

Instance Method Details

#to_hObject



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