Method: Utils::XCCDFScore#absolute_score
- Defined in:
- lib/utilities/xccdf/xccdf_score.rb
#absolute_score ⇒ Object
urn:xccdf:scoring:absolute
33 34 35 36 |
# File 'lib/utilities/xccdf/xccdf_score.rb', line 33 def absolute_score results = score_benchmark_with_weights(true) HappyMapperTools::Benchmark::ScoreType.new('urn:xccdf:scoring:absolute', 1, (results[:max] == results[:score] && results[:max].positive? ? 1 : 0)) end |