Class: Review::FunctionMetric

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#ccnObject

Returns the value of attribute ccn.



4
5
6
# File 'lib/iosappaudit/Review/complexity_report.rb', line 4

def ccn
  @ccn
end

#file_urlObject

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_nameObject

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_numberObject

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

#ncssObject

Returns the value of attribute ncss.



4
5
6
# File 'lib/iosappaudit/Review/complexity_report.rb', line 4

def ncss
  @ncss
end