class Matching::AttributePair
Defines the comparison of two attributes, one from the “left” class and one from the “right”
Attributes
is_fuzzy[R]
left_attr[R]
right_attr[R]
weight[R]
Public Class Methods
new(left_attr, right_attr, weight, is_fuzzy = false)
click to toggle source
# File lib/matching/attribute_pair.rb, line 8 def initialize(left_attr, right_attr, weight, is_fuzzy = false) @left_attr = left_attr @right_attr = right_attr @weight = weight @is_fuzzy = is_fuzzy raise "Weight must be > 0.0" unless weight > 0.0 end