Class: Oso::Polar::Data::Adapter

Inherits:
Object
  • Object
show all
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

ActiveRecordAdapter

Defined Under Namespace

Classes: ActiveRecordAdapter

Instance Method Summary collapse

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