Class: Reflective::Search::Result

Inherits:
Object
  • Object
show all
Defined in:
lib/reflective/search.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#idObject (readonly)

Returns the value of attribute id.



11
12
13
# File 'lib/reflective/search.rb', line 11

def id
  @id
end

#scoreObject (readonly)

Returns the value of attribute score.



11
12
13
# File 'lib/reflective/search.rb', line 11

def score
  @score
end