Class: Spree::Search::Facet

Inherits:
Object
  • Object
show all
Defined in:
lib/spree/search/solr.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, options = []) ⇒ Facet

Returns a new instance of Facet.



70
71
72
73
# File 'lib/spree/search/solr.rb', line 70

def initialize(name, options = [])
  self.name = name
  self.options = options
end

Instance Attribute Details

#nameObject

Returns the value of attribute name.



69
70
71
# File 'lib/spree/search/solr.rb', line 69

def name
  @name
end

#optionsObject

Returns the value of attribute options.



68
69
70
# File 'lib/spree/search/solr.rb', line 68

def options
  @options
end