Class: ActsAsFerret::MoreLikeThis::FrequencyQueueItem
- Inherits:
-
Object
- Object
- ActsAsFerret::MoreLikeThis::FrequencyQueueItem
- Defined in:
- lib/acts_as_ferret/more_like_this.rb
Instance Attribute Summary collapse
-
#field ⇒ Object
readonly
Returns the value of attribute field.
-
#score ⇒ Object
readonly
Returns the value of attribute score.
-
#word ⇒ Object
readonly
Returns the value of attribute word.
Instance Method Summary collapse
-
#initialize(word, field, score) ⇒ FrequencyQueueItem
constructor
A new instance of FrequencyQueueItem.
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
#field ⇒ Object (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 |
#score ⇒ Object (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 |
#word ⇒ Object (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 |