Class: Review::FunctionMetric
- Inherits:
-
Object
- Object
- Review::FunctionMetric
- Defined in:
- lib/iosappaudit/Review/complexity_report.rb
Instance Attribute Summary collapse
-
#ccn ⇒ Object
Returns the value of attribute ccn.
-
#file_url ⇒ Object
Returns the value of attribute file_url.
-
#function_name ⇒ Object
Returns the value of attribute function_name.
-
#line_number ⇒ Object
Returns the value of attribute line_number.
-
#ncss ⇒ Object
Returns the value of attribute ncss.
Instance Method Summary collapse
-
#initialize(file_url = "", function_name = "", line_number = 0, ncss = 0, ccn = 0) ⇒ FunctionMetric
constructor
A new instance of FunctionMetric.
Constructor Details
#initialize(file_url = "", function_name = "", line_number = 0, ncss = 0, ccn = 0) ⇒ FunctionMetric
Returns a new instance of FunctionMetric.
6 7 8 9 10 11 12 |
# File 'lib/iosappaudit/Review/complexity_report.rb', line 6 def initialize(file_url = "", function_name = "", line_number = 0, ncss = 0, ccn = 0) @file_url = file_url @function_name = function_name @line_number = line_number @ncss = ncss @ccn = ccn end |
Instance Attribute Details
#ccn ⇒ Object
Returns the value of attribute ccn.
4 5 6 |
# File 'lib/iosappaudit/Review/complexity_report.rb', line 4 def ccn @ccn end |
#file_url ⇒ Object
Returns the value of attribute file_url.
4 5 6 |
# File 'lib/iosappaudit/Review/complexity_report.rb', line 4 def file_url @file_url end |
#function_name ⇒ Object
Returns the value of attribute function_name.
4 5 6 |
# File 'lib/iosappaudit/Review/complexity_report.rb', line 4 def function_name @function_name end |
#line_number ⇒ Object
Returns the value of attribute line_number.
4 5 6 |
# File 'lib/iosappaudit/Review/complexity_report.rb', line 4 def line_number @line_number end |
#ncss ⇒ Object
Returns the value of attribute ncss.
4 5 6 |
# File 'lib/iosappaudit/Review/complexity_report.rb', line 4 def ncss @ncss end |