Method: Colonel::Job#initialize

Defined in:
lib/colonel/job.rb

#initialize(schedule, command) ⇒ Job

Returns a new instance of Job.



6
7
8
9
10
11
12
# File 'lib/colonel/job.rb', line 6

def initialize(schedule, command)
  @schedule = schedule
  @command = command

  increase_amount
  @id = @@amount
end