15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
# File 'lib/data_validation/comparison/comparison_factory.rb', line 15
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+\/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
end
end
|