Class: RailsDoctor::Score
- Inherits:
-
Struct
- Object
- Struct
- RailsDoctor::Score
- Defined in:
- lib/rails_doctor/models.rb
Instance Attribute Summary collapse
-
#changed_files ⇒ Object
Returns the value of attribute changed_files.
-
#confidence ⇒ Object
Returns the value of attribute confidence.
-
#overall ⇒ Object
Returns the value of attribute overall.
-
#penalties ⇒ Object
Returns the value of attribute penalties.
-
#top_score_movers ⇒ Object
Returns the value of attribute top_score_movers.
Instance Method Summary collapse
Instance Attribute Details
#changed_files ⇒ Object
Returns the value of attribute changed_files
102 103 104 |
# File 'lib/rails_doctor/models.rb', line 102 def changed_files @changed_files end |
#confidence ⇒ Object
Returns the value of attribute confidence
102 103 104 |
# File 'lib/rails_doctor/models.rb', line 102 def confidence @confidence end |
#overall ⇒ Object
Returns the value of attribute overall
102 103 104 |
# File 'lib/rails_doctor/models.rb', line 102 def overall @overall end |
#penalties ⇒ Object
Returns the value of attribute penalties
102 103 104 |
# File 'lib/rails_doctor/models.rb', line 102 def penalties @penalties end |
#top_score_movers ⇒ Object
Returns the value of attribute 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_h ⇒ Object
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 |