Method: InspecTools::Summary#initialize
- Defined in:
- lib/inspec_tools/summary.rb
#initialize(**options) ⇒ Summary
Returns a new instance of Summary.
20 21 22 23 24 25 26 27 28 |
# File 'lib/inspec_tools/summary.rb', line 20 def initialize(**) = [:options] @json = JSON.parse(File.read([:inspec_json])) @json_full = false || [:json_full] @json_counts = false || [:json_counts] @threshold = parse_threshold([:threshold_inline], [:threshold_file]) @threshold_provided = [:threshold_inline] || [:threshold_file] @summary = compute_summary end |