Class: ActsAsFerret::MoreLikeThis::FrequencyQueueItem

Inherits:
Object
  • Object
show all
Defined in:
lib/acts_as_ferret/more_like_this.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(word, field, score) ⇒ FrequencyQueueItem

Returns a new instance of FrequencyQueueItem.



210
211
212
# File 'lib/acts_as_ferret/more_like_this.rb', line 210

def initialize(word, field, score)
  @word = word; @field = field; @score = score
end

Instance Attribute Details

#fieldObject (readonly)

Returns the value of attribute field.



209
210
211
# File 'lib/acts_as_ferret/more_like_this.rb', line 209

def field
  @field
end

#scoreObject (readonly)

Returns the value of attribute score.



209
210
211
# File 'lib/acts_as_ferret/more_like_this.rb', line 209

def score
  @score
end

#wordObject (readonly)

Returns the value of attribute word.



209
210
211
# File 'lib/acts_as_ferret/more_like_this.rb', line 209

def word
  @word
end