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
232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 |
# File 'lib/nexpose/scan.rb', line 232 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 |