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