Class: RSolr::Ext::Response::Facets::FacetField

Inherits:
Object
  • Object
show all
Defined in:
lib/rsolr-ext/response/facets.rb

Overview

represents a facet; which is a field and its values

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, items) ⇒ FacetField

Returns a new instance of FacetField.



14
15
16
# File 'lib/rsolr-ext/response/facets.rb', line 14

def initialize name, items
  @name, @items = name, items
end

Instance Attribute Details

#itemsObject (readonly)

Returns the value of attribute items.



13
14
15
# File 'lib/rsolr-ext/response/facets.rb', line 13

def items
  @items
end

#nameObject (readonly)

Returns the value of attribute name.



13
14
15
# File 'lib/rsolr-ext/response/facets.rb', line 13

def name
  @name
end