Sha256: f8c509733c163cf6e387d02aed62f05f186d2686bec04362f389ac23ad20558f

Contents?: true

Size: 451 Bytes

Versions: 4

Compression:

Stored size: 451 Bytes

Contents

module Scaptimony
  class ArfReportBreakdown < ActiveRecord::Base
    # This class aggregates counts of xccdf:rule-result by xccdf:result. The columns
    # (failed, passed, othered) mimics the 'Rule result breakdown' from OpenSCAP HTML
    # Report.
    #
    # Frameworks like scoped_search cannot do group-by, so this is implemented
    # as a database view.

    set_primary_key :arf_report_id

    protected
    def readonly?; true end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
scaptimony-0.3.2 app/models/scaptimony/arf_report_breakdown.rb
scaptimony-0.3.1 app/models/scaptimony/arf_report_breakdown.rb
scaptimony-0.3.0 app/models/scaptimony/arf_report_breakdown.rb
scaptimony-0.2.0 app/models/scaptimony/arf_report_breakdown.rb