Class: AbideDevUtils::CEM::Generate::CoverageReport::ReportOptions
- Inherits:
 - 
      Object
      
        
- Object
 - AbideDevUtils::CEM::Generate::CoverageReport::ReportOptions
 
 
- Defined in:
 - lib/abide_dev_utils/cem/generate/coverage_report.rb
 
Constant Summary collapse
- DEFAULTS =
 { benchmark: nil, profile: nil, level: nil, format_func: :to_h, ignore_all_errors: false, xccdf_dir: nil, }.freeze
Instance Method Summary collapse
- 
  
    
      #initialize(opts = {})  ⇒ ReportOptions 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of ReportOptions.
 - #report_type ⇒ Object
 
Constructor Details
#initialize(opts = {}) ⇒ ReportOptions
Returns a new instance of ReportOptions.
      41 42 43 44 45 46  | 
    
      # File 'lib/abide_dev_utils/cem/generate/coverage_report.rb', line 41 def initialize(opts = {}) @opts = DEFAULTS.merge(opts) DEFAULTS.each_key do |k| instance_variable_set "@#{k}", @opts[k] end end  | 
  
Instance Method Details
#report_type ⇒ Object
      48 49 50  | 
    
      # File 'lib/abide_dev_utils/cem/generate/coverage_report.rb', line 48 def report_type @report_type ||= (xccdf_dir.nil? ? :basic_coverage : :correlated_coverage) end  |