Class: Daedal::Filters::NestedFilter
- Defined in:
- lib/daedal/filters/nested_filter.rb
Instance Method Summary collapse
Methods inherited from Filter
Instance Method Details
#to_hash ⇒ Object
14 15 16 17 18 19 20 |
# File 'lib/daedal/filters/nested_filter.rb', line 14 def to_hash result = {nested: {path: path, filter: filter.to_hash}} = {_name: name, _cache: cache}.select { |k,v| !v.nil? } result[:nested].merge! result end |