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
112 113 114 |
# File 'lib/rails_doctor/models.rb', line 112 def changed_files @changed_files end |
#confidence ⇒ Object
Returns the value of attribute confidence
112 113 114 |
# File 'lib/rails_doctor/models.rb', line 112 def confidence @confidence end |
#overall ⇒ Object
Returns the value of attribute overall
112 113 114 |
# File 'lib/rails_doctor/models.rb', line 112 def overall @overall end |
#penalties ⇒ Object
Returns the value of attribute penalties
112 113 114 |
# File 'lib/rails_doctor/models.rb', line 112 def penalties @penalties end |
#top_score_movers ⇒ Object
Returns the value of attribute 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_h ⇒ Object
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 |