Sha256: f4e2b182134495b82820dd2770ad881d718d45b1f301957b47c5dc78e9f6da6d

Contents?: true

Size: 536 Bytes

Versions: 1

Compression:

Stored size: 536 Bytes

Contents

require 'albacore/albacoremodel'

module NCover
  class CyclomaticComplexity
    include AlbacoreModel
    
    attr_accessor :maximum, :item_type 
    
    def initialize(params={})
      @maximum = 100
      @item_type = :View
      update_attributes(params) unless params.nil?
      super()
    end
    
    def get_coverage_options
      options = "CyclomaticComplexity"
      options << ":#{maximum}" unless maximum.nil?
      options << ":#{item_type}" unless item_type.nil?
      options
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
albacore-0.2.0.preview1 lib/albacore/ncoverreports/cyclomaticcomplexity.rb