Class: Simpleadmin::Adapters::Base
- Inherits:
-
Object
- Object
- Simpleadmin::Adapters::Base
- Defined in:
- lib/simpleadmin/adapters/base.rb
Overview
Base class to provide a unified interface for each adapter
Direct Known Subclasses
Instance Method Summary collapse
-
#initialize(database_credentials:) ⇒ Base
constructor
A new instance of Base.
- #resources(*_args) ⇒ Object
- #table_columns(*_args) ⇒ Object
- #tables ⇒ Object
Constructor Details
#initialize(database_credentials:) ⇒ Base
Returns a new instance of Base.
11 12 13 |
# File 'lib/simpleadmin/adapters/base.rb', line 11 def initialize(database_credentials:) @database_credentials = database_credentials end |
Instance Method Details
#resources(*_args) ⇒ Object
23 24 25 |
# File 'lib/simpleadmin/adapters/base.rb', line 23 def resources(*_args) raise NotImplementedError, 'Please follow the unified interface, add method #resources' end |
#table_columns(*_args) ⇒ Object
19 20 21 |
# File 'lib/simpleadmin/adapters/base.rb', line 19 def table_columns(*_args) raise NotImplementedError, 'Please follow the unified interface, add method #table_columns' end |
#tables ⇒ Object
15 16 17 |
# File 'lib/simpleadmin/adapters/base.rb', line 15 def tables raise NotImplementedError, 'Please follow the unified interface, add method #tables' end |