Class: Honker::ScheduledFire

Inherits:
Struct
  • Object
show all
Defined in:
lib/honker/scheduler.rb

Overview

Fired on each scheduler tick that enqueued a job.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#fire_atObject

Returns the value of attribute fire_at

Returns:

  • (Object)

    the current value of fire_at



7
8
9
# File 'lib/honker/scheduler.rb', line 7

def fire_at
  @fire_at
end

#job_idObject

Returns the value of attribute job_id

Returns:

  • (Object)

    the current value of job_id



7
8
9
# File 'lib/honker/scheduler.rb', line 7

def job_id
  @job_id
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



7
8
9
# File 'lib/honker/scheduler.rb', line 7

def name
  @name
end

#queueObject

Returns the value of attribute queue

Returns:

  • (Object)

    the current value of 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