Class: OpenSCAP::Xccdf::Fix
- Inherits:
-
Object
- Object
- OpenSCAP::Xccdf::Fix
- Defined in:
- lib/openscap/xccdf/fix.rb
Instance Method Summary collapse
- #complexity ⇒ Object
- #content ⇒ Object
- #disruption ⇒ Object
- #fix_system ⇒ Object
- #id ⇒ Object
-
#initialize(raw) ⇒ Fix
constructor
A new instance of Fix.
- #platform ⇒ Object
- #reboot ⇒ Object
- #strategy ⇒ Object
- #to_hash ⇒ Object
Constructor Details
#initialize(raw) ⇒ Fix
Returns a new instance of Fix.
6 7 8 9 10 |
# File 'lib/openscap/xccdf/fix.rb', line 6 def initialize raw raise OpenSCAP::OpenSCAPError, "Cannot initialize #{self.class.name} with '#{raw}'" unless raw.is_a? FFI::Pointer @raw = raw end |
Instance Method Details
#complexity ⇒ Object
19 |
# File 'lib/openscap/xccdf/fix.rb', line 19 def complexity = OpenSCAP.xccdf_fix_get_complexity @raw |
#content ⇒ Object
15 |
# File 'lib/openscap/xccdf/fix.rb', line 15 def content = OpenSCAP.xccdf_fix_get_content @raw |
#disruption ⇒ Object
18 |
# File 'lib/openscap/xccdf/fix.rb', line 18 def disruption = OpenSCAP.xccdf_fix_get_disruption @raw |
#fix_system ⇒ Object
14 |
# File 'lib/openscap/xccdf/fix.rb', line 14 def fix_system = OpenSCAP.xccdf_fix_get_system @raw |
#id ⇒ Object
12 |
# File 'lib/openscap/xccdf/fix.rb', line 12 def id = OpenSCAP.xccdf_fix_get_id @raw |
#platform ⇒ Object
13 |
# File 'lib/openscap/xccdf/fix.rb', line 13 def platform = OpenSCAP.xccdf_fix_get_platform @raw |
#reboot ⇒ Object
16 |
# File 'lib/openscap/xccdf/fix.rb', line 16 def reboot = OpenSCAP.xccdf_fix_get_reboot @raw |
#strategy ⇒ Object
17 |
# File 'lib/openscap/xccdf/fix.rb', line 17 def strategy = OpenSCAP.xccdf_fix_get_strategy @raw |
#to_hash ⇒ Object
21 22 23 |
# File 'lib/openscap/xccdf/fix.rb', line 21 def to_hash { id:, platform:, system: fix_system, content: } end |