Class: Elrec::ItemScore

Inherits:
Object
  • Object
show all
Defined in:
lib/elrec/search-results.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_idObject

Returns the value of attribute item_id.



6
7
8
# File 'lib/elrec/search-results.rb', line 6

def item_id
  @item_id
end

#scoreObject

Returns the value of attribute score.



6
7
8
# File 'lib/elrec/search-results.rb', line 6

def score
  @score
end