Class: Superstore::Adapters::AbstractAdapter
- Inherits:
-
Object
- Object
- Superstore::Adapters::AbstractAdapter
- Defined in:
- lib/superstore/adapters/abstract_adapter.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#delete(table, ids) ⇒ Object
Delete rows by an array of ids.
-
#initialize ⇒ AbstractAdapter
constructor
A new instance of AbstractAdapter.
-
#insert(table, id, attributes) ⇒ Object
Insert a new row.
-
#select(scope) ⇒ Object
Read records from a instance of Superstore::Scope.
-
#update(table, id, attributes) ⇒ Object
Update an existing row.
Constructor Details
#initialize ⇒ AbstractAdapter
4 5 |
# File 'lib/superstore/adapters/abstract_adapter.rb', line 4 def initialize end |
Instance Method Details
#delete(table, ids) ⇒ Object
Delete rows by an array of ids
20 21 |
# File 'lib/superstore/adapters/abstract_adapter.rb', line 20 def delete(table, ids) # abstract end |
#insert(table, id, attributes) ⇒ Object
Insert a new row
12 13 |
# File 'lib/superstore/adapters/abstract_adapter.rb', line 12 def insert(table, id, attributes) # abstract end |
#select(scope) ⇒ Object
Read records from a instance of Superstore::Scope
8 9 |
# File 'lib/superstore/adapters/abstract_adapter.rb', line 8 def select(scope) # abstract end |
#update(table, id, attributes) ⇒ Object
Update an existing row
16 17 |
# File 'lib/superstore/adapters/abstract_adapter.rb', line 16 def update(table, id, attributes) # abstract end |