Class: Honker::ScheduledFire
- Inherits:
-
Struct
- Object
- Struct
- Honker::ScheduledFire
- Defined in:
- lib/honker/scheduler.rb
Overview
Fired on each scheduler tick that enqueued a job.
Instance Attribute Summary collapse
-
#fire_at ⇒ Object
Returns the value of attribute fire_at.
-
#job_id ⇒ Object
Returns the value of attribute job_id.
-
#name ⇒ Object
Returns the value of attribute name.
-
#queue ⇒ Object
Returns the value of attribute queue.
Class Method Summary collapse
Instance Attribute Details
#fire_at ⇒ Object
Returns the value of attribute fire_at
7 8 9 |
# File 'lib/honker/scheduler.rb', line 7 def fire_at @fire_at end |
#job_id ⇒ Object
Returns the value of attribute job_id
7 8 9 |
# File 'lib/honker/scheduler.rb', line 7 def job_id @job_id end |
#name ⇒ Object
Returns the value of attribute name
7 8 9 |
# File 'lib/honker/scheduler.rb', line 7 def name @name end |
#queue ⇒ Object
Returns the value of attribute queue
7 8 9 |
# File 'lib/honker/scheduler.rb', line 7 def queue @queue end |
Class Method Details
.from_row(row) ⇒ Object
8 9 10 |
# File 'lib/honker/scheduler.rb', line 8 def self.from_row(row) new(row["name"], row["queue"], row["fire_at"], row["job_id"]) end |