Class: Ferret::Search::FuzzyQuery::ScoreTerm
- Inherits:
-
Object
- Object
- Ferret::Search::FuzzyQuery::ScoreTerm
- Defined in:
- lib/ferret/search/fuzzy_query.rb
Instance Attribute Summary collapse
-
#score ⇒ Object
Returns the value of attribute score.
-
#term ⇒ Object
Returns the value of attribute term.
Instance Method Summary collapse
-
#initialize(term, score) ⇒ ScoreTerm
constructor
A new instance of ScoreTerm.
Constructor Details
#initialize(term, score) ⇒ ScoreTerm
Returns a new instance of ScoreTerm.
124 125 126 127 |
# File 'lib/ferret/search/fuzzy_query.rb', line 124 def initialize(term, score) @term = term @score = score end |
Instance Attribute Details
#score ⇒ Object
Returns the value of attribute score.
122 123 124 |
# File 'lib/ferret/search/fuzzy_query.rb', line 122 def score @score end |
#term ⇒ Object
Returns the value of attribute term.
122 123 124 |
# File 'lib/ferret/search/fuzzy_query.rb', line 122 def term @term end |