lib/nexpose/common.rb
# Whether or not this schedule is enabled.
Whether or not this schedule is enabled.
Whether or not this schedule is enabled .
def as_xml
      xml = REXML::Element.new('Schedule')
      xml.attributes['enabled'] = @enabled ? 1 : 0
      xml.attributes['type'] = @type
      xml.attributes['interval'] = @interval
      xml.attributes['start'] = @start
      xml.attributes['maxDuration'] = @max_duration if @max_duration
      xml.attributes['notValidAfter'] = @not_valid_after if @not_valid_after
      xml.attributes['incremental'] = @incremental ? 1 : 0 if @incremental
      xml.attributes['repeaterType'] = @repeater_type if @repeater_type
      xml
    end
def as_xml xml = REXML :: Element . new ( 'Schedule' ) xml . attributes [ 'enabled' ] = @enabled ? 1 : 0 xml . attributes [ 'type' ] = @type xml . attributes [ 'interval' ] = @interval xml . attributes [ 'start' ] = @start xml . attributes [ 'maxDuration' ] = @max_duration if @max_duration xml . attributes [ 'notValidAfter' ] = @not_valid_after if @not_valid_after xml . attributes [ 'incremental' ] = @incremental ? 1 : 0 if @incremental xml . attributes [ 'repeaterType' ] = @repeater_type if @repeater_type xml end
Whether or not this schedule is enabled.
Whether or not this schedule is enabled .