Module: Goodyear::FacetMethods

Included in:
QueryMethods
Defined in:
lib/goodyear/facet_methods.rb

Instance Method Summary collapse

Instance Method Details

#facet(name, options = {}, &block) ⇒ Object



3
4
5
6
7
# File 'lib/goodyear/facet_methods.rb', line 3

def facet(name, options = {}, &block)
  @_facets ||= []
  @_facets << {name: name, args: options, l: block}
  return self
end