class MyApiClient::Sleeper

Sleep arbitrary time

Attributes

wait[R]

Public Class Methods

new(wait:) click to toggle source

@param wait [Integer, Float] Sleep time

# File lib/my_api_client/sleeper.rb, line 7
def initialize(wait:)
  @wait = wait
end

Private Instance Methods

call() click to toggle source
# File lib/my_api_client/sleeper.rb, line 15
def call
  sleep(wait)
end