Module: FetcheableOnApi::Filterable
- Defined in:
- lib/fetcheable_on_api/filterable.rb
Overview
Filterable implements ‘filter` parameter support.
Defined Under Namespace
Modules: ClassMethods
Constant Summary collapse
- PREDICATES_WITH_ARRAY =
Predicates supported for filtering.
%i[ does_not_match_all does_not_match_any eq_all eq_any gt_all gt_any gteq_all gteq_any in_all in_any lt_all lt_any lteq_all lteq_any matches_all matches_any not_eq_all not_eq_any not_in_all not_in_any ].freeze
Class Method Summary collapse
-
.included(base) ⇒ Object
Public class methods.
Class Method Details
.included(base) ⇒ Object
Public class methods
35 36 37 38 39 40 41 |
# File 'lib/fetcheable_on_api/filterable.rb', line 35 def self.included(base) base.class_eval do extend ClassMethods class_attribute :filters_configuration, instance_writer: false self.filters_configuration = {} end end |