Class: Review::FileMeasure
- Inherits:
-
Object
- Object
- Review::FileMeasure
- Defined in:
- lib/iosappaudit/Review/complexity_report.rb
Instance Attribute Summary collapse
-
#average_ccn ⇒ Object
Returns the value of attribute average_ccn.
-
#average_functions ⇒ Object
Returns the value of attribute average_functions.
-
#average_ncss ⇒ Object
Returns the value of attribute average_ncss.
-
#metrics ⇒ Object
Returns the value of attribute metrics.
-
#sum_ccn ⇒ Object
Returns the value of attribute sum_ccn.
-
#sum_functions ⇒ Object
Returns the value of attribute sum_functions.
-
#sum_ncss ⇒ Object
Returns the value of attribute sum_ncss.
Instance Method Summary collapse
-
#initialize(metrics = [], average_ncss = 0, average_ccn = 0, average_functions = 0, sum_ncss = 0, sum_ccn = 0, sum_functions = 0) ⇒ FileMeasure
constructor
A new instance of FileMeasure.
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_ccn ⇒ Object
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_functions ⇒ Object
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_ncss ⇒ Object
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 |
#metrics ⇒ Object
Returns the value of attribute metrics.
40 41 42 |
# File 'lib/iosappaudit/Review/complexity_report.rb', line 40 def metrics @metrics end |
#sum_ccn ⇒ Object
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_functions ⇒ Object
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_ncss ⇒ Object
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 |