Class: OpenSCAP::Xccdf::Profile
- Inherits:
-
Object
- Object
- OpenSCAP::Xccdf::Profile
- Defined in:
- lib/openscap/xccdf/profile.rb
Instance Attribute Summary collapse
-
#raw ⇒ Object
readonly
Returns the value of attribute raw.
Instance Method Summary collapse
- #id ⇒ Object
-
#initialize(p) ⇒ Profile
constructor
A new instance of Profile.
- #title(prefered_lang = nil) ⇒ Object
Constructor Details
#initialize(p) ⇒ Profile
Returns a new instance of Profile.
10 11 12 13 14 15 16 17 |
# File 'lib/openscap/xccdf/profile.rb', line 10 def initialize(p) case p when FFI::Pointer @raw = p else raise OpenSCAP::OpenSCAPError, "Cannot initialize #{self.class.name} with #{p}" end end |
Instance Attribute Details
#raw ⇒ Object (readonly)
Returns the value of attribute raw.
8 9 10 |
# File 'lib/openscap/xccdf/profile.rb', line 8 def raw @raw end |
Instance Method Details
#id ⇒ Object
19 20 21 |
# File 'lib/openscap/xccdf/profile.rb', line 19 def id OpenSCAP.xccdf_profile_get_id raw end |