Class: Nexpose::Schedule

Inherits:
Object
  • Object
show all
Defined in:
lib/nexpose.rb

Overview

Description

Object that holds a scan schedule

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type, interval, start, enabled = 1) ⇒ Schedule

Returns a new instance of Schedule.



1910
1911
1912
1913
1914
1915
1916
1917
# File 'lib/nexpose.rb', line 1910

def initialize(type, interval, start, enabled = 1)

	@type = type
	@interval = interval
	@start = start
	@enabled = enabled

end

Instance Attribute Details

#byDateObject (readonly)

Scan on the same date each time



1908
1909
1910
# File 'lib/nexpose.rb', line 1908

def byDate
  @byDate
end

#enabledObject (readonly)

Enable or disable this schedule



1904
1905
1906
# File 'lib/nexpose.rb', line 1904

def enabled
  @enabled
end

#intervalObject (readonly)

The schedule interval



1900
1901
1902
# File 'lib/nexpose.rb', line 1900

def interval
  @interval
end

#notValidAfterObject (readonly)

The date and time to disable to schedule. If null then the schedule will run forever.



1906
1907
1908
# File 'lib/nexpose.rb', line 1906

def notValidAfter
  @notValidAfter
end

#startObject (readonly)

The date and time to start the first scan



1902
1903
1904
# File 'lib/nexpose.rb', line 1902

def start
  @start
end

#typeObject (readonly)

Type of Schedule (daily|hourly|monthly|weekly)



1898
1899
1900
# File 'lib/nexpose.rb', line 1898

def type
  @type
end