# File lib/openscap/xccdf/profile.rb, line 19 def initialize(p) case p when FFI::Pointer @raw = p else raise OpenSCAP::OpenSCAPError, "Cannot initialize #{self.class.name} with #{p}" end end
# File lib/openscap/xccdf/profile.rb, line 28 def id OpenSCAP.xccdf_profile_get_id raw end
# File lib/openscap/xccdf/profile.rb, line 32 def title(prefered_lang = nil) textlist = OpenSCAP::TextList.new(OpenSCAP.xccdf_profile_get_title(@raw)) title = textlist.plaintext(prefered_lang) textlist.destroy title end