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.
1781 1782 1783 1784 1785 1786 1787 1788 |
# File 'lib/nexpose.rb', line 1781 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
1779 1780 1781 |
# File 'lib/nexpose.rb', line 1779 def byDate @byDate end |
#enabled ⇒ Object (readonly)
Enable or disable this schedule
1775 1776 1777 |
# File 'lib/nexpose.rb', line 1775 def enabled @enabled end |
#interval ⇒ Object (readonly)
The schedule interval
1771 1772 1773 |
# File 'lib/nexpose.rb', line 1771 def interval @interval end |
#notValidAfter ⇒ Object (readonly)
The date and time to disable to schedule. If null then the schedule will run forever.
1777 1778 1779 |
# File 'lib/nexpose.rb', line 1777 def notValidAfter @notValidAfter end |
#start ⇒ Object (readonly)
The date and time to start the first scan
1773 1774 1775 |
# File 'lib/nexpose.rb', line 1773 def start @start end |
#type ⇒ Object (readonly)
Type of Schedule (daily|hourly|monthly|weekly)
1769 1770 1771 |
# File 'lib/nexpose.rb', line 1769 def type @type end |