Class: RESTFramework::BaseFilter

Inherits:
Object
  • Object
show all
Defined in:
lib/rest_framework/filters.rb

Direct Known Subclasses

ModelFilter, ModelOrderingFilter

Instance Method Summary collapse

Constructor Details

#initialize(controller:) ⇒ BaseFilter

Returns a new instance of BaseFilter.



3
4
5
# File 'lib/rest_framework/filters.rb', line 3

def initialize(controller:)
  @controller = controller
end

Instance Method Details

#get_filtered_data(data) ⇒ Object

Raises:

  • (NotImplementedError)


7
8
9
# File 'lib/rest_framework/filters.rb', line 7

def get_filtered_data(data)
  raise NotImplementedError
end