Module: Eson::Search::Facet::ClassMethods

Defined in:
lib/eson/search/facet.rb

Instance Method Summary collapse

Instance Method Details

#short_name(name) ⇒ Object



5
6
7
8
9
10
11
12
13
# File 'lib/eson/search/facet.rb', line 5

def short_name(name)
  name = name.to_sym
  define_method :name do
    name
  end
  Facets.register name, self

  super if defined? super
end