Class: Hashira::Complexity::ClassScore
- Inherits:
-
Data
- Object
- Data
- Hashira::Complexity::ClassScore
- Defined in:
- lib/hashira/complexity/method_score.rb
Instance Attribute Summary collapse
-
#cognitive ⇒ Object
readonly
Returns the value of attribute cognitive.
-
#method_count ⇒ Object
readonly
Returns the value of attribute method_count.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#peak ⇒ Object
readonly
Returns the value of attribute peak.
Instance Method Summary collapse
Instance Attribute Details
#cognitive ⇒ Object (readonly)
Returns the value of attribute cognitive
13 14 15 |
# File 'lib/hashira/complexity/method_score.rb', line 13 def cognitive @cognitive end |
#method_count ⇒ Object (readonly)
Returns the value of attribute method_count
13 14 15 |
# File 'lib/hashira/complexity/method_score.rb', line 13 def method_count @method_count end |
#name ⇒ Object (readonly)
Returns the value of attribute name
13 14 15 |
# File 'lib/hashira/complexity/method_score.rb', line 13 def name @name end |
#peak ⇒ Object (readonly)
Returns the value of attribute peak
13 14 15 |
# File 'lib/hashira/complexity/method_score.rb', line 13 def peak @peak end |
Instance Method Details
#cells ⇒ Object
14 |
# File 'lib/hashira/complexity/method_score.rb', line 14 def cells = [name, cognitive, method_count, peak] |