Class: RandomGem::Randomizer

Inherits:
Object
  • Object
show all
Defined in:
lib/random_gem/randomizer.rb

Defined Under Namespace

Classes: Error

Constant Summary collapse

TIMEOUT =
30.freeze
PAGE =
100.freeze

Instance Method Summary collapse

Instance Method Details

#performObject



10
11
12
13
# File 'lib/random_gem/randomizer.rb', line 10

def perform
  gems = Timeout.timeout(TIMEOUT, RandomGem::Randomizer::Error) { random_pick_loop }
  pick_single_gem(gems: gems)
end