Class: OpenSCAP::Xccdf::Ident

Inherits:
Object
  • Object
show all
Defined in:
lib/openscap/xccdf/ident.rb

Instance Method Summary collapse

Constructor Details

#initialize(raw) ⇒ Ident

Returns a new instance of Ident.



6
7
8
9
10
11
# File 'lib/openscap/xccdf/ident.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

#idObject



17
18
19
# File 'lib/openscap/xccdf/ident.rb', line 17

def id
  OpenSCAP.xccdf_ident_get_id(@raw)
end

#systemObject



13
14
15
# File 'lib/openscap/xccdf/ident.rb', line 13

def system
  OpenSCAP.xccdf_ident_get_system(@raw)
end