Class: ActiveBlur::ScoredResult

Inherits:
Object
  • Object
show all
Includes:
ActiveModel::Serialization
Defined in:
lib/active_blur/search_results.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#resultObject

Returns the value of attribute result.



4
5
6
# File 'lib/active_blur/search_results.rb', line 4

def result
  @result
end

#scoreObject

Returns the value of attribute score.



4
5
6
# File 'lib/active_blur/search_results.rb', line 4

def score
  @score
end