Class: MultiScheduler::Scheduler
- Inherits:
-
Object
- Object
- MultiScheduler::Scheduler
- Defined in:
- lib/multi_scheduler.rb
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Scheduler
constructor
A new instance of Scheduler.
Constructor Details
#initialize(options = {}) ⇒ Scheduler
Returns a new instance of Scheduler.
25 26 27 28 29 30 31 32 33 |
# File 'lib/multi_scheduler.rb', line 25 def initialize = {} @identifier = [:id] raise ":id is required" unless @identifier @command_arguments = [:args] || [] @command = [:command] || @command_arguments.shift raise ":command is required" unless @command end |