class Greenjaguar::Strategies::RandomStrategy
Public Class Methods
new()
click to toggle source
Calls superclass method
# File lib/greenjaguar/strategies/random_strategy.rb, line 4 def initialize super @time_to_wait = 5 end
Public Instance Methods
reset_vars()
click to toggle source
# File lib/greenjaguar/strategies/random_strategy.rb, line 9 def reset_vars @time_to_wait = 5 * convert_to(time_unit) end
wait()
click to toggle source
# File lib/greenjaguar/strategies/random_strategy.rb, line 13 def wait rand(@time_to_wait) end