Class: Simpleadmin::DatabaseConnector
- Inherits:
-
Object
- Object
- Simpleadmin::DatabaseConnector
- Defined in:
- lib/simpleadmin/database_connector.rb
Overview
Connector service that handles different databases to provide unified API endpoints
Constant Summary collapse
Instance Method Summary collapse
- #client ⇒ Object
-
#initialize(database_credentials:) ⇒ DatabaseConnector
constructor
A new instance of DatabaseConnector.
Constructor Details
#initialize(database_credentials:) ⇒ DatabaseConnector
Returns a new instance of DatabaseConnector.
16 17 18 |
# File 'lib/simpleadmin/database_connector.rb', line 16 def initialize(database_credentials:) @database_credentials = database_credentials end |
Instance Method Details
#client ⇒ Object
20 21 22 |
# File 'lib/simpleadmin/database_connector.rb', line 20 def client adapter.new(database_credentials: database_credentials) end |