Class: Hashira::Complexity::ClassScore

Inherits:
Data
  • Object
show all
Defined in:
lib/hashira/complexity/method_score.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#cognitiveObject (readonly)

Returns the value of attribute cognitive

Returns:

  • (Object)

    the current value of cognitive



13
14
15
# File 'lib/hashira/complexity/method_score.rb', line 13

def cognitive
  @cognitive
end

#method_countObject (readonly)

Returns the value of attribute method_count

Returns:

  • (Object)

    the current value of method_count



13
14
15
# File 'lib/hashira/complexity/method_score.rb', line 13

def method_count
  @method_count
end

#nameObject (readonly)

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



13
14
15
# File 'lib/hashira/complexity/method_score.rb', line 13

def name
  @name
end

#peakObject (readonly)

Returns the value of attribute peak

Returns:

  • (Object)

    the current value of peak



13
14
15
# File 'lib/hashira/complexity/method_score.rb', line 13

def peak
  @peak
end

Instance Method Details

#cellsObject



14
# File 'lib/hashira/complexity/method_score.rb', line 14

def cells = [name, cognitive, method_count, peak]