Class: OpenSCAP::DS::Arf
- Inherits:
-
Object
- Object
- OpenSCAP::DS::Arf
- Defined in:
- lib/openscap/ds/arf.rb
Instance Method Summary collapse
- #destroy ⇒ Object
- #html ⇒ Object
-
#initialize(input_filename) ⇒ Arf
constructor
A new instance of Arf.
Constructor Details
#initialize(input_filename) ⇒ Arf
Returns a new instance of Arf.
18 19 20 21 22 23 24 |
# File 'lib/openscap/ds/arf.rb', line 18 def initialize(input_filename) @source = OpenSCAP::Source.new(input_filename) @session = OpenSCAP.ds_rds_session_new_from_source @source.raw if @session.null? OpenSCAP.raise! end end |
Instance Method Details
#destroy ⇒ Object
26 27 28 29 30 |
# File 'lib/openscap/ds/arf.rb', line 26 def destroy OpenSCAP.ds_rds_session_free(@session) @session = nil @source.destroy() end |