class Ansr::Facets::FacetField

represents a facet; which is a field and its values

Attributes

items[R]
name[R]

Public Class Methods

new(name, items, options = {}) click to toggle source
# File lib/ansr/facets.rb, line 32
def initialize name, items, options = {}
  @name, @items = name, items
  @options = options
end

Public Instance Methods

limit() click to toggle source
# File lib/ansr/facets.rb, line 37
def limit
  @options[:limit]
end
offset() click to toggle source
# File lib/ansr/facets.rb, line 45
def offset
  @options[:offset] || 0
end
sort() click to toggle source
# File lib/ansr/facets.rb, line 41
def sort
  @options[:sort] || 'index'
end