module ActsAsFerret # mixed into the FerretResult and AR classes calling acts_as_ferret module ResultAttributes # holds the score this record had when it was found via # acts_as_ferret attr_accessor :ferret_score attr_accessor :ferret_rank end class FerretResult < ActsAsFerret::BlankSlate include ResultAttributes attr_accessor :id reveal :methods def initialize(model, id, score, rank, data = {}) @model = model.constantize @id = id @ferret_score = score @ferret_rank = rank @data = data @use_record = false end def inspect "#