Class: Delayed::Master::Job
- Inherits:
-
Object
- Object
- Delayed::Master::Job
- Defined in:
- lib/delayed/master/job.rb
Instance Attribute Summary collapse
-
#database ⇒ Object
Returns the value of attribute database.
-
#id ⇒ Object
Returns the value of attribute id.
-
#run_at ⇒ Object
Returns the value of attribute run_at.
-
#setting ⇒ Object
Returns the value of attribute setting.
Instance Method Summary collapse
-
#initialize(attrs = {}) ⇒ Job
constructor
A new instance of Job.
Constructor Details
#initialize(attrs = {}) ⇒ Job
Returns a new instance of Job.
8 9 10 11 12 |
# File 'lib/delayed/master/job.rb', line 8 def initialize(attrs = {}) attrs.each do |k, v| send("#{k}=", v) end end |
Instance Attribute Details
#database ⇒ Object
Returns the value of attribute database.
6 7 8 |
# File 'lib/delayed/master/job.rb', line 6 def database @database end |
#id ⇒ Object
Returns the value of attribute id.
6 7 8 |
# File 'lib/delayed/master/job.rb', line 6 def id @id end |
#run_at ⇒ Object
Returns the value of attribute run_at.
6 7 8 |
# File 'lib/delayed/master/job.rb', line 6 def run_at @run_at end |
#setting ⇒ Object
Returns the value of attribute setting.
6 7 8 |
# File 'lib/delayed/master/job.rb', line 6 def setting @setting end |