Class: RailsDoctor::Score

Inherits:
Struct
  • Object
show all
Defined in:
lib/rails_doctor/models.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#changed_filesObject

Returns the value of attribute changed_files

Returns:

  • (Object)

    the current value of changed_files



112
113
114
# File 'lib/rails_doctor/models.rb', line 112

def changed_files
  @changed_files
end

#confidenceObject

Returns the value of attribute confidence

Returns:

  • (Object)

    the current value of confidence



112
113
114
# File 'lib/rails_doctor/models.rb', line 112

def confidence
  @confidence
end

#overallObject

Returns the value of attribute overall

Returns:

  • (Object)

    the current value of overall



112
113
114
# File 'lib/rails_doctor/models.rb', line 112

def overall
  @overall
end

#penaltiesObject

Returns the value of attribute penalties

Returns:

  • (Object)

    the current value of penalties



112
113
114
# File 'lib/rails_doctor/models.rb', line 112

def penalties
  @penalties
end

#top_score_moversObject

Returns the value of attribute top_score_movers

Returns:

  • (Object)

    the current value of top_score_movers



112
113
114
# File 'lib/rails_doctor/models.rb', line 112

def top_score_movers
  @top_score_movers
end

Instance Method Details

#to_hObject



120
121
122
123
124
125
126
127
128
# File 'lib/rails_doctor/models.rb', line 120

def to_h
  {
    overall: overall,
    changed_files: changed_files,
    confidence: confidence,
    penalties: penalties,
    top_score_movers: top_score_movers
  }
end