Class: Solr::Query::Response::FacetValue

Inherits:
Object
  • Object
show all
Defined in:
lib/solr/query/response/facet_value.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(text:, count:, subfacets: []) ⇒ FacetValue

Returns a new instance of FacetValue.



7
8
9
10
11
12
# File 'lib/solr/query/response/facet_value.rb', line 7

def initialize(text:, count:, subfacets: [])
  @text      = text
  @count     = count
  @subfacets = subfacets
  freeze
end

Instance Attribute Details

#countObject (readonly)

Returns the value of attribute count.



5
6
7
# File 'lib/solr/query/response/facet_value.rb', line 5

def count
  @count
end

#subfacetsObject (readonly)

Returns the value of attribute subfacets.



5
6
7
# File 'lib/solr/query/response/facet_value.rb', line 5

def subfacets
  @subfacets
end

#textObject (readonly)

Returns the value of attribute text.



5
6
7
# File 'lib/solr/query/response/facet_value.rb', line 5

def text
  @text
end