Module: Rokaki::Filterable

Included in:
FilterModel
Defined in:
lib/rokaki/filterable.rb

Overview

include this module for rokaki’s filtering dsl in any object

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object



7
8
9
# File 'lib/rokaki/filterable.rb', line 7

def self.included(base)
  base.extend(ClassMethods)
end

Instance Method Details

#filtersObject

Raises:



115
116
117
# File 'lib/rokaki/filterable.rb', line 115

def filters
  raise Error, "Filterable object must implement 'filters' method that returns a hash"
end