Class: RESTFramework::BaseFilter
- Inherits:
-
Object
- Object
- RESTFramework::BaseFilter
- Defined in:
- lib/rest_framework/filters/base.rb
Direct Known Subclasses
ModelOrderingFilter, ModelQueryFilter, ModelSearchFilter, RansackFilter
Instance Method Summary collapse
- #get_filtered_data(data) ⇒ Object
-
#initialize(controller:) ⇒ BaseFilter
constructor
A new instance of BaseFilter.
Constructor Details
#initialize(controller:) ⇒ BaseFilter
Returns a new instance of BaseFilter.
2 3 4 |
# File 'lib/rest_framework/filters/base.rb', line 2 def initialize(controller:) @controller = controller end |
Instance Method Details
#get_filtered_data(data) ⇒ Object
6 7 8 |
# File 'lib/rest_framework/filters/base.rb', line 6 def get_filtered_data(data) raise NotImplementedError end |