class Lhm::Throttler::Time

Constants

DEFAULT_STRIDE
DEFAULT_TIMEOUT

Attributes

stride[RW]
timeout_seconds[RW]

Public Class Methods

new(options = {}) click to toggle source
# File lib/lhm/throttler/time.rb, line 12
def initialize(options = {})
  @timeout_seconds = options[:delay] || DEFAULT_TIMEOUT
  @stride = options[:stride] || DEFAULT_STRIDE
end

Public Instance Methods

execute() click to toggle source
# File lib/lhm/throttler/time.rb, line 17
def execute
  sleep timeout_seconds
end