Class: Stretchy::Filters::Base
- Inherits:
-
Object
- Object
- Stretchy::Filters::Base
- Extended by:
- Forwardable
- Includes:
- Utils::Validation
- Defined in:
- lib/stretchy/filters/base.rb
Direct Known Subclasses
AndFilter, BoolFilter, ExistsFilter, GeoFilter, NotFilter, OrFilter, QueryFilter, RangeFilter, TermsFilter
Instance Method Summary collapse
-
#initialize ⇒ Base
constructor
A new instance of Base.
- #to_search ⇒ Object
Methods included from Utils::Validation
#errors, included, #json_attributes, #require_one!, #require_only_one!, #valid?, #validate!, #validator
Constructor Details
#initialize ⇒ Base
Returns a new instance of Base.
11 12 13 |
# File 'lib/stretchy/filters/base.rb', line 11 def initialize raise "Override this in subclass" end |
Instance Method Details
#to_search ⇒ Object
15 16 17 |
# File 'lib/stretchy/filters/base.rb', line 15 def to_search raise "Override this in subclass" end |