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.
1433 1434 1435 1436 1437 1438 1439 1440 |
# File 'lib/nexpose.rb', line 1433 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
1431 1432 1433 |
# File 'lib/nexpose.rb', line 1431 def byDate @byDate end |
#enabled ⇒ Object (readonly)
Enable or disable this schedule
1427 1428 1429 |
# File 'lib/nexpose.rb', line 1427 def enabled @enabled end |
#interval ⇒ Object (readonly)
The schedule interval
1423 1424 1425 |
# File 'lib/nexpose.rb', line 1423 def interval @interval end |
#notValidAfter ⇒ Object (readonly)
The date and time to disable to schedule. If null then the schedule will run forever.
1429 1430 1431 |
# File 'lib/nexpose.rb', line 1429 def notValidAfter @notValidAfter end |
#start ⇒ Object (readonly)
The date and time to start the first scan
1425 1426 1427 |
# File 'lib/nexpose.rb', line 1425 def start @start end |
#type ⇒ Object (readonly)
Type of Schedule (daily|hourly|monthly|weekly)
1421 1422 1423 |
# File 'lib/nexpose.rb', line 1421 def type @type end |