Class: SolrLite::FacetField::FacetValue
- Inherits:
-
Object
- Object
- SolrLite::FacetField::FacetValue
- Defined in:
- lib/facet_field.rb
Instance Attribute Summary collapse
-
#add_url ⇒ Object
Returns the value of attribute add_url.
-
#count ⇒ Object
Returns the value of attribute count.
-
#range_end ⇒ Object
Returns the value of attribute range_end.
-
#range_start ⇒ Object
Returns the value of attribute range_start.
-
#remove_url ⇒ Object
Returns the value of attribute remove_url.
-
#text ⇒ Object
Returns the value of attribute text.
Instance Method Summary collapse
-
#initialize(text = "", count = 0, remove_url = nil) ⇒ FacetValue
constructor
A new instance of FacetValue.
Constructor Details
#initialize(text = "", count = 0, remove_url = nil) ⇒ FacetValue
Returns a new instance of FacetValue.
6 7 8 9 10 11 12 13 |
# File 'lib/facet_field.rb', line 6 def initialize(text = "", count = 0, remove_url = nil) @text = text @count = count @remove_url = remove_url @add_url = nil @range_start = nil @range_end = nil end |
Instance Attribute Details
#add_url ⇒ Object
Returns the value of attribute add_url.
5 6 7 |
# File 'lib/facet_field.rb', line 5 def add_url @add_url end |
#count ⇒ Object
Returns the value of attribute count.
5 6 7 |
# File 'lib/facet_field.rb', line 5 def count @count end |
#range_end ⇒ Object
Returns the value of attribute range_end.
5 6 7 |
# File 'lib/facet_field.rb', line 5 def range_end @range_end end |
#range_start ⇒ Object
Returns the value of attribute range_start.
5 6 7 |
# File 'lib/facet_field.rb', line 5 def range_start @range_start end |
#remove_url ⇒ Object
Returns the value of attribute remove_url.
5 6 7 |
# File 'lib/facet_field.rb', line 5 def remove_url @remove_url end |
#text ⇒ Object
Returns the value of attribute text.
5 6 7 |
# File 'lib/facet_field.rb', line 5 def text @text end |