Module: ColumnsMatcher
- Defined in:
- lib/columns_matcher.rb,
lib/columns_matcher/graph.rb,
lib/columns_matcher/version.rb,
lib/columns_matcher/converter.rb,
lib/columns_matcher/utilities.rb,
lib/columns_matcher/statistics.rb
Defined Under Namespace
Modules: Converter, Graph, Statistics, Utilities
Constant Summary collapse
- VERSION =
'0.0.9'
Class Method Summary collapse
-
.match(columns_to_match_against, columns_to_match) ⇒ Object
columns_to_match_against and columns_to_match are hashes with column names as the keys and column values as the values Returns mappings of columns with the keys as columns to match and values as columns to match against.
Class Method Details
.match(columns_to_match_against, columns_to_match) ⇒ Object
columns_to_match_against and columns_to_match are hashes with column names as the keys and column values as the values Returns mappings of columns with the keys as columns to match and values as columns to match against
12 13 14 15 16 17 18 19 |
# File 'lib/columns_matcher.rb', line 12 def self.match(columns_to_match_against, columns_to_match) columns_to_match_against_graph = Graph::build_dependency_graph(columns_to_match_against) columns_to_match_graph = Graph::build_dependency_graph(columns_to_match) column_mappings = Graph::match_graphs(columns_to_match_against_graph, columns_to_match_graph) column_mappings end |