Method: TVDB::Service::Threading::ThreadedRequest#initialize

Defined in:
lib/tvdb_client/service/threading/threaded_request.rb

#initialize(options) ⇒ ThreadedRequest

Returns a new instance of ThreadedRequest.



9
10
11
12
13
# File 'lib/tvdb_client/service/threading/threaded_request.rb', line 9

def initialize( options )
  @connection = options.fetch( :connection )
  @pool_size  = options.fetch( :pool_size )  { 10 }
  @threads    = Array.new
end