Method: Sunspot::Search::StatRow#instance

Defined in:
lib/search/stat_row.rb

#instanceObject

Return the instance referenced by this stat row. Only valid for field stats whose fields are defined with the :references key.



16
17
18
19
20
21
# File 'lib/search/stat_row.rb', line 16

def instance
  if !defined?(@instance)
    @stat.populate_instances
  end
  @instance
end