Class: ActiveBlur::ScoredResult
- Inherits:
-
Object
- Object
- ActiveBlur::ScoredResult
- Includes:
- ActiveModel::Serialization
- Defined in:
- lib/active_blur/search_results.rb
Instance Attribute Summary collapse
-
#result ⇒ Object
Returns the value of attribute result.
-
#score ⇒ Object
Returns the value of attribute score.
Instance Method Summary collapse
-
#initialize(score, result) ⇒ ScoredResult
constructor
A new instance of ScoredResult.
Constructor Details
#initialize(score, result) ⇒ ScoredResult
Returns a new instance of ScoredResult.
5 6 7 8 |
# File 'lib/active_blur/search_results.rb', line 5 def initialize(score, result) @score=score @result=result end |
Instance Attribute Details
#result ⇒ Object
Returns the value of attribute result.
4 5 6 |
# File 'lib/active_blur/search_results.rb', line 4 def result @result end |
#score ⇒ Object
Returns the value of attribute score.
4 5 6 |
# File 'lib/active_blur/search_results.rb', line 4 def score @score end |