Class: Reflective::Search::Result
- Inherits:
-
Object
- Object
- Reflective::Search::Result
- Defined in:
- lib/reflective/search.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#score ⇒ Object
readonly
Returns the value of attribute score.
Instance Method Summary collapse
-
#initialize(id:, score:) ⇒ Result
constructor
A new instance of Result.
Constructor Details
#initialize(id:, score:) ⇒ Result
Returns a new instance of Result.
13 14 15 16 |
# File 'lib/reflective/search.rb', line 13 def initialize(id:, score:) @id = id @score = score end |
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
11 12 13 |
# File 'lib/reflective/search.rb', line 11 def id @id end |
#score ⇒ Object (readonly)
Returns the value of attribute score.
11 12 13 |
# File 'lib/reflective/search.rb', line 11 def score @score end |