class Sunspot::Search::StatsFacet
Attributes
field[R]
Public Instance Methods
inspect()
click to toggle source
# File lib/sunspot/search/stats_facet.rb, line 20 def inspect "<Sunspot::Search::StatsFacet:#{@field}>" end
rows(options = {})
click to toggle source
# File lib/sunspot/search/stats_facet.rb, line 10 def rows(options = {}) if options[:verified] verified_rows else @rows ||= @data.map do |value, data| StatsRow.new(data, self, @field.type.cast(value)) end.sort_by { |row| row.value.to_s } end end