class DataValidation::Comparison::RankingTableHsRatingComparison
Public Instance Methods
determine_request_body_and_logger_name()
click to toggle source
# File lib/data_validation/comparison/ranking_table_hs_rating_comparison.rb, line 23 def determine_request_body_and_logger_name @category = if web_url.match /bingrl/ 'GIRLS' elsif web_url.match /binboy/ 'BOYS' elsif web_url.match /binmen/ 'MEN' elsif web_url.match /binwom/ 'WOMEN' end @season = "20#{web_url.match(/update(..)/)[1]}" @logger_name = "log/#{season}/#{category.downcase}/natlrating_#{season}_#{category}.log" %Q|{"category":"#{category}","season":#{season}, "type": "PR", "currPage":1,"pageSize":5000}| end
empty_field()
click to toggle source
# File lib/data_validation/comparison/ranking_table_hs_rating_comparison.rb, line 11 def empty_field 'pollRank' end
field_array()
click to toggle source
# File lib/data_validation/comparison/ranking_table_hs_rating_comparison.rb, line 7 def field_array ['rank', 'teamName', 'state', 'powerRating', 'pollRank', 'sos', 'winLossTotal', 'totalWins', 'totalLosses', 'totalTies'] end
rank_field()
click to toggle source
# File lib/data_validation/comparison/ranking_table_hs_rating_comparison.rb, line 15 def rank_field 'powerRating' end