Class: RedshiftConnectionPool
- Inherits:
-
SimpleCache
- Object
- SimpleCache
- RedshiftConnectionPool
- Includes:
- Singleton
- Defined in:
- lib/redshift_connection_pool.rb
Instance Method Summary collapse
Methods inherited from SimpleCache
Constructor Details
This class inherits a constructor from SimpleCache
Instance Method Details
#new_object(role) ⇒ Object
4 5 6 7 |
# File 'lib/redshift_connection_pool.rb', line 4 def new_object(role) config = REDSHIFT_DB_CONFIG[role] RedshiftPG::Connection.new(config) end |