Class: Review::FunctionMeasure

Inherits:
Object
  • Object
show all
Defined in:
lib/iosappaudit/Review/complexity_report.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(metrics = [], average_ncss = 0, average_ccn = 0) ⇒ FunctionMeasure

Returns a new instance of FunctionMeasure.



31
32
33
34
35
# File 'lib/iosappaudit/Review/complexity_report.rb', line 31

def initialize(metrics = [], average_ncss = 0, average_ccn = 0)
    @metrics = metrics
    @average_ncss = average_ncss
    @average_ccn = average_ccn
end

Instance Attribute Details

#average_ccnObject

Returns the value of attribute average_ccn.



29
30
31
# File 'lib/iosappaudit/Review/complexity_report.rb', line 29

def average_ccn
  @average_ccn
end

#average_ncssObject

Returns the value of attribute average_ncss.



29
30
31
# File 'lib/iosappaudit/Review/complexity_report.rb', line 29

def average_ncss
  @average_ncss
end

#metricsObject

Returns the value of attribute metrics.



29
30
31
# File 'lib/iosappaudit/Review/complexity_report.rb', line 29

def metrics
  @metrics
end