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.
1559 1560 1561 1562 1563 1564 1565 1566 |
# File 'lib/nexpose.rb', line 1559 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
1557 1558 1559 |
# File 'lib/nexpose.rb', line 1557 def byDate @byDate end |
#enabled ⇒ Object (readonly)
Enable or disable this schedule
1553 1554 1555 |
# File 'lib/nexpose.rb', line 1553 def enabled @enabled end |
#interval ⇒ Object (readonly)
The schedule interval
1549 1550 1551 |
# File 'lib/nexpose.rb', line 1549 def interval @interval end |
#notValidAfter ⇒ Object (readonly)
The date and time to disable to schedule. If null then the schedule will run forever.
1555 1556 1557 |
# File 'lib/nexpose.rb', line 1555 def notValidAfter @notValidAfter end |
#start ⇒ Object (readonly)
The date and time to start the first scan
1551 1552 1553 |
# File 'lib/nexpose.rb', line 1551 def start @start end |
#type ⇒ Object (readonly)
Type of Schedule (daily|hourly|monthly|weekly)
1547 1548 1549 |
# File 'lib/nexpose.rb', line 1547 def type @type end |