Class: Matching::Match

Inherits:
Object
  • Object
show all
Defined in:
lib/matching/match.rb

Overview

Defines a pair of objects that have been matched by the matcher

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(left_obj, right_obj, score) ⇒ Match

Returns a new instance of Match.



8
9
10
11
12
# File 'lib/matching/match.rb', line 8

def initialize(left_obj, right_obj, score)
  @left_obj = left_obj
  @right_obj = right_obj
  @score = score
end

Instance Attribute Details

#left_objObject (readonly)

Returns the value of attribute left_obj.



5
6
7
# File 'lib/matching/match.rb', line 5

def left_obj
  @left_obj
end

#right_objObject (readonly)

Returns the value of attribute right_obj.



5
6
7
# File 'lib/matching/match.rb', line 5

def right_obj
  @right_obj
end

#scoreObject

Returns the value of attribute score.



6
7
8
# File 'lib/matching/match.rb', line 6

def score
  @score
end