Class: RandomGem::Randomizer
- Inherits:
-
Object
- Object
- RandomGem::Randomizer
- 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
#perform ⇒ Object
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 |