Class: Apnotic::ConnectionPool

Inherits:
Object
  • Object
show all
Defined in:
lib/apnotic/connection_pool.rb

Class Method Summary collapse

Class Method Details

.development(options = {}, pool_options = {}) ⇒ Object



14
15
16
17
18
# File 'lib/apnotic/connection_pool.rb', line 14

def development(options={}, pool_options={})
  ::ConnectionPool.new(pool_options) do
    Apnotic::Connection.development(options)
  end
end

.new(options = {}, pool_options = {}) ⇒ Object



8
9
10
11
12
# File 'lib/apnotic/connection_pool.rb', line 8

def new(options={}, pool_options={})
  ::ConnectionPool.new(pool_options) do
    Apnotic::Connection.new(options)
  end
end