Class: Nexpose::ScanConfig
- Inherits:
-
Object
- Object
- Nexpose::ScanConfig
- Defined in:
- lib/nexpose/scan.rb
Overview
TODO add engineID
Description
Object that represents the scanning configuration for a Site.
Class Method Summary collapse
Class Method Details
.parse(xml) ⇒ Object
278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 |
# File 'lib/nexpose/scan.rb', line 278 def self.parse(xml) config = ScanConfig.new(xml.attributes['configID'], xml.attributes['name'], xml.attributes['templateID'], xml.attributes['configVersion'], xml.attributes['engineID']) xml.elements.each('Schedules/Schedule') do |sched| schedule = Schedule.new(sched.attributes['type'], sched.attributes['interval'], sched.attributes['start'], sched.attributes['enabled']) config.addSchedule(schedule) end config end |