Sha256: 76c8482ffdf9c71af22779bf970cbd1eef4799fa84c148669c12162bfabb4c11

Contents?: true

Size: 523 Bytes

Versions: 2

Compression:

Stored size: 523 Bytes

Contents

require "albacore/support/updateattributes"

module NCover
  class ReportBase
    include UpdateAttributes
    
    attr_accessor :output_path, 
                  :report_format, 
                  :report_type
    
    def initialize(params = {})
      update_attributes(params) if params
      super()
    end
    
    def get_report_options()
      o = "#{@report_type}"
      o << ":#{@report_format}" if @report_format
      o << ":\"#{@output_path}\"" if @output_path
      o
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
albacore-1.0.0 lib/albacore/ncoverreports/reportbase.rb
albacore-1.0.0.rc.3 lib/albacore/ncoverreports/reportbase.rb