Class: Lims::Core::Persistence::Filter Abstract

Inherits:
Object
  • Object
show all
Defined in:
lib/lims-core/persistence/filter.rb

Overview

This class is abstract.

Base class of all filters.

A filter acts on persistors and can be chained. Note: This class is not really usefull in a *Ruby world* and is mainly here for documentation.

Direct Known Subclasses

ComparisonFilter, MultiCriteriaFilter

Instance Method Summary collapse

Instance Method Details

#call(persistor) ⇒ Persistor

Transform a persistor to a “filtered persistor” The filtered persistor loading only the filtered object. Note that the actual implementation of the filter depends on the type of the persistor (Sequel for example).

Parameters:

Returns:

Raises:

  • (NotImplementedError)


17
18
19
# File 'lib/lims-core/persistence/filter.rb', line 17

def call(persistor)
  raise NotImplementedError
end