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.
39 40 41 42 43 44 |
# File 'lib/abide_dev_utils/cem/generate/coverage_report.rb', line 39 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
46 47 48 |
# File 'lib/abide_dev_utils/cem/generate/coverage_report.rb', line 46 def report_type @report_type ||= (xccdf_dir.nil? ? :basic_coverage : :correlated_coverage) end |