Class: Elrec::ItemScore
- Inherits:
-
Object
- Object
- Elrec::ItemScore
- Defined in:
- lib/elrec/search-results.rb
Instance Attribute Summary collapse
-
#item_id ⇒ Object
Returns the value of attribute item_id.
-
#score ⇒ Object
Returns the value of attribute score.
Instance Method Summary collapse
-
#initialize(item_id, score) ⇒ ItemScore
constructor
A new instance of ItemScore.
Constructor Details
#initialize(item_id, score) ⇒ ItemScore
Returns a new instance of ItemScore.
7 8 9 10 |
# File 'lib/elrec/search-results.rb', line 7 def initialize(item_id, score) @item_id = item_id @score = score end |
Instance Attribute Details
#item_id ⇒ Object
Returns the value of attribute item_id.
6 7 8 |
# File 'lib/elrec/search-results.rb', line 6 def item_id @item_id end |
#score ⇒ Object
Returns the value of attribute score.
6 7 8 |
# File 'lib/elrec/search-results.rb', line 6 def score @score end |