Method: WithConnection::ConnectionPool#initialize

Defined in:
lib/with_connection/connection_pool.rb

#initialize(name, spec) ⇒ ConnectionPool

Returns a new instance of ConnectionPool.



7
8
9
10
11
12
13
# File 'lib/with_connection/connection_pool.rb', line 7

def initialize(name, spec)
  @name = name
  super spec
  @disable_warning = !! spec.config[:disable_warning]
  @debug_with_connection = !! spec.config[:debug_with_connection]
  ConnectionManagement.connection_pools << self
end