Class: Eson::Search::Filters::FilterArray
- Inherits:
-
Array
- Object
- Array
- Eson::Search::Filters::FilterArray
- Includes:
- FilterMethods, Parametrized
- Defined in:
- lib/eson/search/filters.rb
Instance Attribute Summary
Attributes included from Parametrized
Instance Method Summary collapse
Methods included from Parametrized
Instance Method Details
#define_filters ⇒ Object
16 17 18 |
# File 'lib/eson/search/filters.rb', line 16 def define_filters instance_exec(self, &Proc.new) if block_given? end |
#filters ⇒ Object
12 13 14 |
# File 'lib/eson/search/filters.rb', line 12 def filters self end |
#to_query_hash ⇒ Object
20 21 22 23 24 25 26 |
# File 'lib/eson/search/filters.rb', line 20 def to_query_hash if length == 1 first.to_query_hash else map(&:to_query_hash) end end |