Class: PerfectSched::Runner

Inherits:
Object
  • Object
show all
Defined in:
lib/perfectsched/runner.rb

Direct Known Subclasses

Application::Base, Application::Dispatch

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#taskObject (readonly)

Returns the value of attribute task.



25
26
27
# File 'lib/perfectsched/runner.rb', line 25

def task
  @task
end

Instance Method Details

#schedulesObject



27
28
29
# File 'lib/perfectsched/runner.rb', line 27

def schedules
  ScheduleCollection.new(task.client)
end