Class: Oso::Polar::Data::Adapter
- Inherits:
-
Object
- Object
- Oso::Polar::Data::Adapter
- Defined in:
- lib/oso/polar/data/adapter.rb,
lib/oso/polar/data/adapter/active_record_adapter.rb
Overview
Abstract data adapter
An Adapter has to implement two methods.
Direct Known Subclasses
Defined Under Namespace
Classes: ActiveRecordAdapter
Instance Method Summary collapse
-
#build_query(_filter) ⇒ Object
Make a query object from a filter.
-
#execute_query(_query) ⇒ Object
Make a list of objects from a query.
Instance Method Details
#build_query(_filter) ⇒ Object
Make a query object from a filter
11 12 13 |
# File 'lib/oso/polar/data/adapter.rb', line 11 def build_query(_filter) raise "build_query not implemented for #{self}" end |
#execute_query(_query) ⇒ Object
Make a list of objects from a query
16 17 18 |
# File 'lib/oso/polar/data/adapter.rb', line 16 def execute_query(_query) raise "execute_query not implemented for #{self}" end |