Sha256: 349ff46b53a3d00d83fbccc01427eb3edb90f9e9a75405f53c8900a77d196bd6

Contents?: true

Size: 595 Bytes

Versions: 11

Compression:

Stored size: 595 Bytes

Contents

require 'albacore/support/updateattributes'

module NCover
  class CodeCoverageBase
    include UpdateAttributes
    
    attr_accessor :coverage_type, :minimum, :item_type 
    
    def initialize(coverage_type, params={})
      @coverage_type = coverage_type
      @minimum = 0
      @item_type = :View
      update_attributes(params) unless params.nil?
      super()
    end
    
    def get_coverage_options
      options = "#{@coverage_type}"
      options << ":#{@minimum}" unless @minimum.nil?
      options << ":#{@item_type}" unless @item_type.nil?
      options
    end
  end
end  
  

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
albacore-0.3.6 lib/albacore/ncoverreports/codecoveragebase.rb
albacore-1.0.0.rc.2 lib/albacore/ncoverreports/codecoveragebase.rb
albacore-1.0.0.rc.1 lib/albacore/ncoverreports/codecoveragebase.rb
albacore-0.3.5 lib/albacore/ncoverreports/codecoveragebase.rb
albacore-0.3.4 lib/albacore/ncoverreports/codecoveragebase.rb
albacore-0.3.3 lib/albacore/ncoverreports/codecoveragebase.rb
albacore-0.3.2 lib/albacore/ncoverreports/codecoveragebase.rb
albacore-0.3.1 lib/albacore/ncoverreports/codecoveragebase.rb
albacore-0.3.0 lib/albacore/ncoverreports/codecoveragebase.rb
albacore-0.2.7 lib/albacore/ncoverreports/codecoveragebase.rb
albacore-0.2.6 lib/albacore/ncoverreports/codecoveragebase.rb