Class: AbideDevUtils::Sce::Generate::CoverageReport::ReportOptions
- Inherits:
-
Object
- Object
- AbideDevUtils::Sce::Generate::CoverageReport::ReportOptions
- Defined in:
- lib/abide_dev_utils/sce/generate/coverage_report.rb
Overview
Holds options for generating a report
Constant Summary collapse
- DEFAULTS =
{ benchmark: nil, profile: nil, level: nil, format_func: :to_h, ignore_benchmark_errors: false }.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.
51 52 53 54 55 56 |
# File 'lib/abide_dev_utils/sce/generate/coverage_report.rb', line 51 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
58 59 60 |
# File 'lib/abide_dev_utils/sce/generate/coverage_report.rb', line 58 def report_type :basic_coverage end |