Class: Nexpose::Schedule
- Inherits:
-
Object
- Object
- Nexpose::Schedule
- Defined in:
- lib/nexpose.rb
Overview
Description
Object that holds a scan schedule
Instance Attribute Summary collapse
-
#byDate ⇒ Object
readonly
Scan on the same date each time.
-
#enabled ⇒ Object
readonly
Enable or disable this schedule.
-
#interval ⇒ Object
readonly
The schedule interval.
-
#notValidAfter ⇒ Object
readonly
The date and time to disable to schedule.
-
#start ⇒ Object
readonly
The date and time to start the first scan.
-
#type ⇒ Object
readonly
Type of Schedule (daily|hourly|monthly|weekly).
Instance Method Summary collapse
-
#initialize(type, interval, start, enabled = 1) ⇒ Schedule
constructor
A new instance of Schedule.
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
#byDate ⇒ Object (readonly)
Scan on the same date each time
1908 1909 1910 |
# File 'lib/nexpose.rb', line 1908 def byDate @byDate end |
#enabled ⇒ Object (readonly)
Enable or disable this schedule
1904 1905 1906 |
# File 'lib/nexpose.rb', line 1904 def enabled @enabled end |
#interval ⇒ Object (readonly)
The schedule interval
1900 1901 1902 |
# File 'lib/nexpose.rb', line 1900 def interval @interval end |
#notValidAfter ⇒ Object (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 |
#start ⇒ Object (readonly)
The date and time to start the first scan
1902 1903 1904 |
# File 'lib/nexpose.rb', line 1902 def start @start end |
#type ⇒ Object (readonly)
Type of Schedule (daily|hourly|monthly|weekly)
1898 1899 1900 |
# File 'lib/nexpose.rb', line 1898 def type @type end |