Class: Kronos::ScheduledTask
- Inherits:
-
Object
- Object
- Kronos::ScheduledTask
- Defined in:
- lib/kronos/scheduled_task.rb
Instance Attribute Summary collapse
-
#next_run ⇒ Object
readonly
Returns the value of attribute next_run.
-
#task_id ⇒ Object
readonly
Returns the value of attribute task_id.
Instance Method Summary collapse
-
#initialize(task_id, next_run) ⇒ ScheduledTask
constructor
A new instance of ScheduledTask.
Constructor Details
#initialize(task_id, next_run) ⇒ ScheduledTask
Returns a new instance of ScheduledTask.
7 8 9 10 |
# File 'lib/kronos/scheduled_task.rb', line 7 def initialize(task_id, next_run) @task_id = check_task_id(task_id) @next_run = check_next_run(next_run) end |
Instance Attribute Details
#next_run ⇒ Object (readonly)
Returns the value of attribute next_run.
5 6 7 |
# File 'lib/kronos/scheduled_task.rb', line 5 def next_run @next_run end |
#task_id ⇒ Object (readonly)
Returns the value of attribute task_id.
5 6 7 |
# File 'lib/kronos/scheduled_task.rb', line 5 def task_id @task_id end |