class BehaveFun::LeafTasks::Wait
Constants
- ParamsSchema
Attributes
counter[RW]
Public Instance Methods
execute()
click to toggle source
# File lib/behave_fun/leaf_tasks/wait.rb, line 10 def execute if @counter < params[:duration] @counter += 1 running else success end end
params=(params)
click to toggle source
# File lib/behave_fun/leaf_tasks/wait.rb, line 23 def params=(params) @params = ParamsSchema[params] end
serializable_status_fields()
click to toggle source
# File lib/behave_fun/leaf_tasks/wait.rb, line 19 def serializable_status_fields [:counter] end
start()
click to toggle source
Calls superclass method
# File lib/behave_fun/leaf_tasks/wait.rb, line 5 def start super @counter = 0 end