Class: NCover::CyclomaticComplexity
- Inherits:
-
Object
- Object
- NCover::CyclomaticComplexity
- Includes:
- UpdateAttributes
- Defined in:
- lib/albacore/ncoverreports/cyclomaticcomplexity.rb
Instance Attribute Summary collapse
-
#item_type ⇒ Object
Returns the value of attribute item_type.
-
#maximum ⇒ Object
Returns the value of attribute maximum.
Instance Method Summary collapse
- #get_coverage_options ⇒ Object
-
#initialize(params = {}) ⇒ CyclomaticComplexity
constructor
A new instance of CyclomaticComplexity.
Methods included from UpdateAttributes
Constructor Details
#initialize(params = {}) ⇒ CyclomaticComplexity
Returns a new instance of CyclomaticComplexity.
9 10 11 12 13 14 |
# File 'lib/albacore/ncoverreports/cyclomaticcomplexity.rb', line 9 def initialize(params={}) @maximum = 100 @item_type = :View update_attributes(params) unless params.nil? super() end |
Instance Attribute Details
#item_type ⇒ Object
Returns the value of attribute item_type.
7 8 9 |
# File 'lib/albacore/ncoverreports/cyclomaticcomplexity.rb', line 7 def item_type @item_type end |
#maximum ⇒ Object
Returns the value of attribute maximum.
7 8 9 |
# File 'lib/albacore/ncoverreports/cyclomaticcomplexity.rb', line 7 def maximum @maximum end |
Instance Method Details
#get_coverage_options ⇒ Object
16 17 18 19 20 21 |
# File 'lib/albacore/ncoverreports/cyclomaticcomplexity.rb', line 16 def = "CyclomaticComplexity" << ":#{maximum}" unless maximum.nil? << ":#{item_type}" unless item_type.nil? end |