class Greenjaguar::Strategies::FixedIntervalStrategy

Public Class Methods

new(*args) click to toggle source
Calls superclass method
# File lib/greenjaguar/strategies/fixed_interval_strategy.rb, line 4
def initialize(*args)
  super
  @time_to_wait = args[0]
end

Public Instance Methods

reset_vars() click to toggle source
# File lib/greenjaguar/strategies/fixed_interval_strategy.rb, line 9
def reset_vars
  @time_to_wait = @time_to_wait * convert_to(time_unit)
end
wait() click to toggle source
# File lib/greenjaguar/strategies/fixed_interval_strategy.rb, line 13
def wait
  sleep @time_to_wait
end