Class: Jobs::BaseJobDetail
- Inherits:
-
Object
- Object
- Jobs::BaseJobDetail
- Defined in:
- lib/jobs/base_job_detail.rb
Instance Attribute Summary collapse
-
#job ⇒ Object
Returns the value of attribute job.
Instance Method Summary collapse
-
#initialize(name, group, job) ⇒ BaseJobDetail
constructor
A new instance of BaseJobDetail.
- #validate ⇒ Object
Constructor Details
#initialize(name, group, job) ⇒ BaseJobDetail
Returns a new instance of BaseJobDetail.
9 10 11 12 13 14 |
# File 'lib/jobs/base_job_detail.rb', line 9 def initialize(name, group, job) super() set_name name set_group group @job = job end |
Instance Attribute Details
#job ⇒ Object
Returns the value of attribute job.
7 8 9 |
# File 'lib/jobs/base_job_detail.rb', line 7 def job @job end |
Instance Method Details
#validate ⇒ Object
16 17 18 19 20 21 |
# File 'lib/jobs/base_job_detail.rb', line 16 def validate raise org.quartz.SchedulerException.new("Job's name cannot be null", org.quartz.SchedulerException.ERR_CLIENT_ERROR) if get_name == nil raise org.quartz.SchedulerException.new("Job's group cannot be null", org.quartz.SchedulerException.ERR_CLIENT_ERROR) if get_group == nil end |