Class: Review::FileMeasure

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, average_functions = 0, sum_ncss = 0, sum_ccn = 0, sum_functions = 0) ⇒ FileMeasure

Returns a new instance of FileMeasure.



42
43
44
45
46
47
48
49
50
# File 'lib/iosappaudit/Review/complexity_report.rb', line 42

def initialize(metrics = [], average_ncss = 0, average_ccn = 0, average_functions = 0, sum_ncss = 0, sum_ccn = 0, sum_functions = 0)
    @metrics = metrics
    @average_ncss = average_ncss
    @average_ccn = average_ccn
    @average_functions =  average_functions
    @sum_ncss = sum_ncss
    @sum_ccn = sum_ccn
    @sum_functions =  sum_functions
end

Instance Attribute Details

#average_ccnObject

Returns the value of attribute average_ccn.



40
41
42
# File 'lib/iosappaudit/Review/complexity_report.rb', line 40

def average_ccn
  @average_ccn
end

#average_functionsObject

Returns the value of attribute average_functions.



40
41
42
# File 'lib/iosappaudit/Review/complexity_report.rb', line 40

def average_functions
  @average_functions
end

#average_ncssObject

Returns the value of attribute average_ncss.



40
41
42
# File 'lib/iosappaudit/Review/complexity_report.rb', line 40

def average_ncss
  @average_ncss
end

#metricsObject

Returns the value of attribute metrics.



40
41
42
# File 'lib/iosappaudit/Review/complexity_report.rb', line 40

def metrics
  @metrics
end

#sum_ccnObject

Returns the value of attribute sum_ccn.



40
41
42
# File 'lib/iosappaudit/Review/complexity_report.rb', line 40

def sum_ccn
  @sum_ccn
end

#sum_functionsObject

Returns the value of attribute sum_functions.



40
41
42
# File 'lib/iosappaudit/Review/complexity_report.rb', line 40

def sum_functions
  @sum_functions
end

#sum_ncssObject

Returns the value of attribute sum_ncss.



40
41
42
# File 'lib/iosappaudit/Review/complexity_report.rb', line 40

def sum_ncss
  @sum_ncss
end