Class: FamilyReunion::ExactMatcher
- Inherits:
-
Object
- Object
- FamilyReunion::ExactMatcher
- Includes:
- MatcherHelper
- Defined in:
- lib/family-reunion/exact_matcher.rb
Instance Method Summary collapse
-
#initialize(family_reunion) ⇒ ExactMatcher
constructor
A new instance of ExactMatcher.
- #merge ⇒ Object
Constructor Details
#initialize(family_reunion) ⇒ ExactMatcher
Returns a new instance of ExactMatcher.
5 6 7 |
# File 'lib/family-reunion/exact_matcher.rb', line 5 def initialize(family_reunion) @fr = family_reunion end |
Instance Method Details
#merge ⇒ Object
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/family-reunion/exact_matcher.rb', line 9 def merge FamilyReunion.logger_write(@fr.object_id, "Merging exact matches of accepted names") add_valid_matches(get_valid_matches) FamilyReunion.logger_write(@fr.object_id, "Merging exact matches of accepted names to synonyms") add_synonym_matches(get_valid_to_synonym_matches, :exact_valid_to_synonym) FamilyReunion.logger_write(@fr.object_id, "Merging exact matches of synonyms to accepted names") add_synonym_matches(get_synonym_to_valid_matches, :exact_synonym_to_valid) FamilyReunion.logger_write(@fr.object_id, "Merging exact matches of synonyms") add_synonym_matches(get_synonym_to_synonym_matches, :exact_synonym_to_synonym) end |