Class: RSolrExt::Response::Select::Facets::Facet

Inherits:
Object
  • Object
show all
Defined in:
lib/rsolr_ext/response/select.rb

Overview

represents a facet; which is a field and its values

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(field) ⇒ Facet

Returns a new instance of Facet.



56
57
58
59
# File 'lib/rsolr_ext/response/select.rb', line 56

def initialize(field)
  @field=field
  @values=[]
end

Instance Attribute Details

#fieldObject (readonly)

Returns the value of attribute field.



54
55
56
# File 'lib/rsolr_ext/response/select.rb', line 54

def field
  @field
end

#valuesObject

Returns the value of attribute values.



55
56
57
# File 'lib/rsolr_ext/response/select.rb', line 55

def values
  @values
end