Class: PerfectSched::Runner
- Inherits:
-
Object
- Object
- PerfectSched::Runner
- Defined in:
- lib/perfectsched/runner.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#task ⇒ Object
readonly
Returns the value of attribute task.
Instance Method Summary collapse
-
#initialize(task) ⇒ Runner
constructor
A new instance of Runner.
- #schedules ⇒ Object
Constructor Details
#initialize(task) ⇒ Runner
Returns a new instance of Runner.
21 22 23 |
# File 'lib/perfectsched/runner.rb', line 21 def initialize(task) @task = task end |
Instance Attribute Details
#task ⇒ Object (readonly)
Returns the value of attribute task.
25 26 27 |
# File 'lib/perfectsched/runner.rb', line 25 def task @task end |
Instance Method Details
#schedules ⇒ Object
27 28 29 |
# File 'lib/perfectsched/runner.rb', line 27 def schedules ScheduleCollection.new(task.client) end |