Class: Quartz::JobFactory

Inherits:
Object
  • Object
show all
Includes:
Singleton
Defined in:
lib/quartz/job_factory.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeJobFactory

Returns a new instance of JobFactory.



6
7
8
# File 'lib/quartz/job_factory.rb', line 6

def initialize
  @jobs||={}
end

Instance Attribute Details

#jobsObject

Returns the value of attribute jobs.



5
6
7
# File 'lib/quartz/job_factory.rb', line 5

def jobs
  @jobs
end

Instance Method Details

#new_job(event) ⇒ Object



9
10
11
12
# File 'lib/quartz/job_factory.rb', line 9

def new_job(event)
  event.get_job_detail.job
  
end