Class: Review::FileMetric

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 = "", ncss = 0, ccn = 0, functions = 0) ⇒ FileMetric

Returns a new instance of FileMetric.



19
20
21
22
23
24
# File 'lib/iosappaudit/Review/complexity_report.rb', line 19

def initialize(file_url = "", ncss = 0, ccn = 0, functions = 0)
    @file_url = file_url
    @ncss = ncss
    @ccn = ccn
    @functions = functions
end

Instance Attribute Details

#ccnObject

Returns the value of attribute ccn.



17
18
19
# File 'lib/iosappaudit/Review/complexity_report.rb', line 17

def ccn
  @ccn
end

#file_urlObject

Returns the value of attribute file_url.



17
18
19
# File 'lib/iosappaudit/Review/complexity_report.rb', line 17

def file_url
  @file_url
end

#functionsObject

Returns the value of attribute functions.



17
18
19
# File 'lib/iosappaudit/Review/complexity_report.rb', line 17

def functions
  @functions
end

#ncssObject

Returns the value of attribute ncss.



17
18
19
# File 'lib/iosappaudit/Review/complexity_report.rb', line 17

def ncss
  @ncss
end