Class: Matching::Match
- Inherits:
-
Object
- Object
- Matching::Match
- Defined in:
- lib/matching/match.rb
Overview
Defines a pair of objects that have been matched by the matcher
Instance Attribute Summary collapse
-
#left_obj ⇒ Object
readonly
Returns the value of attribute left_obj.
-
#right_obj ⇒ Object
readonly
Returns the value of attribute right_obj.
-
#score ⇒ Object
Returns the value of attribute score.
Instance Method Summary collapse
-
#initialize(left_obj, right_obj, score) ⇒ Match
constructor
A new instance of Match.
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_obj ⇒ Object (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_obj ⇒ Object (readonly)
Returns the value of attribute right_obj.
5 6 7 |
# File 'lib/matching/match.rb', line 5 def right_obj @right_obj end |
#score ⇒ Object
Returns the value of attribute score.
6 7 8 |
# File 'lib/matching/match.rb', line 6 def score @score end |