23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
# File 'lib/data_validation/comparison/comparison_factory.rb', line 23
def self.get_comparison(url)
if url.match /update\d\d\/bin(boy|grl)\/rating\d+.php/ return DivRankingPrComparison.new url
elsif url.match /update\d\d\/bin\S+\/rating\d+.php/ return RankingTableMwPrComparison.new url
elsif url.match /update\d\d\/bin\S+\/rating[a-z]+.php/ return StateRankingComparison.new url
elsif url.match /update\d\d\/bin\S+\/sos\d+.php/ return RankingTableMwSosComparison.new url
elsif url.match /update\d\d\/bin\S+\/rpi\d+.php/ return RankingTableMwRpiComparison.new url
elsif url.match /update\d\d\/bin\S+\/wl\d+.php/ return DivRankingWlComparison.new url
elsif url.match /update\d\d\/bin\S+\/qwf\d+.php/ return RankingTableMwQwComparison.new url
elsif url.match /update\d\d\/bin\S+\/poll\d+.php/ return RankingTableMwPollComparison.new url
elsif url.match /update\d\d\/bin\S+\/trend\d+.php/ return RankingTableMwTrendComparison.new url
elsif url.match /update\d\d\/bin\S+\/tsi\d+.php/ return RankingTableMwTsiComparison.new url
elsif url.match /\.com\/(mll|nll)/ return RankingTableProPrComparison.new url
elsif url.match /update\d\d\/bin\S+\/natlccr.php/ return RankingTableHsCrrComparison.new url
elsif url.match /update\d\d\/bin\S+\/natlpoll.php/ return RankingTableHsPollComparison.new url
elsif url.match /update\d\d\/bin\S+\/natlrating.php/ return RankingTableHsRatingComparison.new url
elsif url.match /update\d\d\/bin\S+\/natlsos.php/ return RankingTableHsSosComparison.new url
elsif url.match /update\d\d\/bin\S+\/natlrpi.php/ return RankingTableHsRpiComparison.new url
elsif url.match /update\d\d\/bin\S+\/natlqwf.php/ return RankingTableHsQwfComparison.new url
elsif url.match /update\d\d\/bin\S+\/natl-wl.php/ return RankingTableHsWlComparison.new url
end
end
|