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.
19 20 21 22 23 24 25 26 |
# File 'lib/openscap/xccdf/profile.rb', line 19 def initialize(p) case p when FFI::Pointer @raw = p else fail OpenSCAP::OpenSCAPError, "Cannot initialize OpenSCAP::Xccdf::Profile with #{p}" end end |
Instance Attribute Details
#raw ⇒ Object (readonly)
Returns the value of attribute raw.
17 18 19 |
# File 'lib/openscap/xccdf/profile.rb', line 17 def raw @raw end |
Instance Method Details
#id ⇒ Object
28 29 30 |
# File 'lib/openscap/xccdf/profile.rb', line 28 def id OpenSCAP.xccdf_profile_get_id raw end |