class Typhoeus::Hydra
def initialize(options = {})
- See: http://rubydoc.info/github/typhoeus/ethon/Ethon/Multi#initialize-instance_method -
Options Hash:
(**options)
-
:max_concurrency
(Integer
) -- Number
Parameters:
-
options
(Hash
) -- The options hash.
Other tags:
- Example: Create a hydra with max_concurrency. -
Example: Create a hydra. -
def initialize(options = {}) @options = options @max_concurrency = Integer(@options.fetch(:max_concurrency, 200)) @multi = Ethon::Multi.new(options.reject{|k,_| k==:max_concurrency}) end