Class: OpenSCAP::Xccdf::Fixtext
- Inherits:
-
Object
- Object
- OpenSCAP::Xccdf::Fixtext
- Defined in:
- lib/openscap/xccdf/fixtext.rb
Instance Method Summary collapse
- #complexity ⇒ Object
- #content ⇒ Object
- #disruption ⇒ Object
- #fixref ⇒ Object
-
#initialize(raw) ⇒ Fixtext
constructor
A new instance of Fixtext.
- #reboot ⇒ Object
- #strategy ⇒ Object
Constructor Details
#initialize(raw) ⇒ Fixtext
Returns a new instance of Fixtext.
6 7 8 9 10 |
# File 'lib/openscap/xccdf/fixtext.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
17 |
# File 'lib/openscap/xccdf/fixtext.rb', line 17 def complexity = OpenSCAP.xccdf_fixtext_get_complexity @raw |
#content ⇒ Object
12 |
# File 'lib/openscap/xccdf/fixtext.rb', line 12 def content = Text.new(OpenSCAP.xccdf_fixtext_get_text(@raw)).text |
#disruption ⇒ Object
16 |
# File 'lib/openscap/xccdf/fixtext.rb', line 16 def disruption = OpenSCAP.xccdf_fixtext_get_disruption @raw |
#fixref ⇒ Object
13 |
# File 'lib/openscap/xccdf/fixtext.rb', line 13 def fixref = OpenSCAP.xccdf_fixtext_get_fixref @raw |
#reboot ⇒ Object
14 |
# File 'lib/openscap/xccdf/fixtext.rb', line 14 def reboot = OpenSCAP.xccdf_fixtext_get_reboot @raw |
#strategy ⇒ Object
15 |
# File 'lib/openscap/xccdf/fixtext.rb', line 15 def strategy = OpenSCAP.xccdf_fixtext_get_strategy @raw |