Class: Quartz::JobFactory
- Inherits:
-
Object
- Object
- Quartz::JobFactory
- Includes:
- Singleton
- Defined in:
- lib/quartz/job_factory.rb
Instance Attribute Summary collapse
-
#jobs ⇒ Object
Returns the value of attribute jobs.
Instance Method Summary collapse
-
#initialize ⇒ JobFactory
constructor
A new instance of JobFactory.
- #new_job(event) ⇒ Object
Constructor Details
#initialize ⇒ JobFactory
Returns a new instance of JobFactory.
6 7 8 |
# File 'lib/quartz/job_factory.rb', line 6 def initialize @jobs||={} end |
Instance Attribute Details
#jobs ⇒ Object
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 |