# File lib/openscap/xccdf/fix.rb, line 15 def initialize(raw) raise OpenSCAP::OpenSCAPError, "Cannot initialize #{self.class.name} with '#{raw}'" unless raw.is_a?(FFI::Pointer) @raw = raw end
# File lib/openscap/xccdf/fix.rb, line 34 def content OpenSCAP.xccdf_fix_get_content(@raw) end
system is a reserved word in Rails, so didn't use it
# File lib/openscap/xccdf/fix.rb, line 30 def fix_system OpenSCAP.xccdf_fix_get_system(@raw) end
# File lib/openscap/xccdf/fix.rb, line 21 def id OpenSCAP.xccdf_fix_get_id(@raw) end
# File lib/openscap/xccdf/fix.rb, line 25 def platform OpenSCAP.xccdf_fix_get_platform(@raw) end
# File lib/openscap/xccdf/fix.rb, line 38 def to_hash { :id => id, :platform => platform, :system => fix_system, :content => content } end