Class: SolrLite::FacetField::FacetValue

Inherits:
Object
  • Object
show all
Defined in:
lib/facet_field.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_urlObject

Returns the value of attribute add_url.



5
6
7
# File 'lib/facet_field.rb', line 5

def add_url
  @add_url
end

#countObject

Returns the value of attribute count.



5
6
7
# File 'lib/facet_field.rb', line 5

def count
  @count
end

#range_endObject

Returns the value of attribute range_end.



5
6
7
# File 'lib/facet_field.rb', line 5

def range_end
  @range_end
end

#range_startObject

Returns the value of attribute range_start.



5
6
7
# File 'lib/facet_field.rb', line 5

def range_start
  @range_start
end

#remove_urlObject

Returns the value of attribute remove_url.



5
6
7
# File 'lib/facet_field.rb', line 5

def remove_url
  @remove_url
end

#textObject

Returns the value of attribute text.



5
6
7
# File 'lib/facet_field.rb', line 5

def text
  @text
end