Class: Spree::Search::FacetOption
- Inherits:
-
Object
- Object
- Spree::Search::FacetOption
- Defined in:
- lib/spree/search/solr.rb
Instance Attribute Summary collapse
-
#count ⇒ Object
Returns the value of attribute count.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name, count) ⇒ FacetOption
constructor
A new instance of FacetOption.
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
#count ⇒ Object
Returns the value of attribute count.
78 79 80 |
# File 'lib/spree/search/solr.rb', line 78 def count @count end |
#name ⇒ Object
Returns the value of attribute name.
77 78 79 |
# File 'lib/spree/search/solr.rb', line 77 def name @name end |