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



102
103
104
# File 'lib/rails_doctor/models.rb', line 102

def changed_files
  @changed_files
end

#confidenceObject

Returns the value of attribute confidence

Returns:

  • (Object)

    the current value of confidence



102
103
104
# File 'lib/rails_doctor/models.rb', line 102

def confidence
  @confidence
end

#overallObject

Returns the value of attribute overall

Returns:

  • (Object)

    the current value of overall



102
103
104
# File 'lib/rails_doctor/models.rb', line 102

def overall
  @overall
end

#penaltiesObject

Returns the value of attribute penalties

Returns:

  • (Object)

    the current value of penalties



102
103
104
# File 'lib/rails_doctor/models.rb', line 102

def penalties
  @penalties
end

#top_score_moversObject

Returns the value of attribute top_score_movers

Returns:

  • (Object)

    the current value of top_score_movers



102
103
104
# File 'lib/rails_doctor/models.rb', line 102

def top_score_movers
  @top_score_movers
end

Instance Method Details

#to_hObject



110
111
112
113
114
115
116
117
118
# File 'lib/rails_doctor/models.rb', line 110

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