class Seam::WaitWorker
Public Class Methods
new()
click to toggle source
# File lib/seam/wait_worker.rb, line 5 def initialize handles :wait end
Public Instance Methods
process()
click to toggle source
# File lib/seam/wait_worker.rb, line 9 def process move_to_next_step( { on: the_time_to_move_on } ) end
Private Instance Methods
the_amount_of_time_to_wait()
click to toggle source
# File lib/seam/wait_worker.rb, line 19 def the_amount_of_time_to_wait current_step[:arguments][0] end
the_time_to_move_on()
click to toggle source
# File lib/seam/wait_worker.rb, line 15 def the_time_to_move_on time_of_last_execution + the_amount_of_time_to_wait end
time_of_last_execution()
click to toggle source
# File lib/seam/wait_worker.rb, line 23 def time_of_last_execution return effort.created_at if effort.history.count == 0 effort.history.last[:stopped_at] end