Class: MyApiClient::Sleeper

Inherits:
ServiceAbstract show all
Defined in:
lib/my_api_client/sleeper.rb

Overview

Sleep arbitrary time

Instance Method Summary collapse

Methods inherited from ServiceAbstract

call

Constructor Details

#initialize(wait:) ⇒ Sleeper

Returns a new instance of Sleeper.

Parameters:

  • wait (Integer, Float)

    Sleep time



7
8
9
# File 'lib/my_api_client/sleeper.rb', line 7

def initialize(wait:)
  @wait = wait
end