Class: Spree::Search::FacetOption

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, count) ⇒ FacetOption

Returns a new instance of FacetOption.



79
80
81
82
# File 'lib/spree/search/solr.rb', line 79

def initialize(name, count)
  self.name = name
  self.count = count
end

Instance Attribute Details

#countObject

Returns the value of attribute count.



78
79
80
# File 'lib/spree/search/solr.rb', line 78

def count
  @count
end

#nameObject

Returns the value of attribute name.



77
78
79
# File 'lib/spree/search/solr.rb', line 77

def name
  @name
end