class Object

Public Instance Methods

get_all_predictions() click to toggle source
# File lib/finktank.rb, line 4
def get_all_predictions()

  game = open("http://www.dectech.org/cgi-bin/new_site/GetUpcomingGames_r.pl")
  body = game.read
  hashes = JSON.parse(body)
  predictions = hashes["games"]
  return predictions

end
get_champ_predictions() click to toggle source
# File lib/finktank.rb, line 30
def get_champ_predictions()


  return get_league_predictions(12)

end
get_l1_predictions() click to toggle source
# File lib/finktank.rb, line 37
def get_l1_predictions()

  return get_league_predictions(13)

end
get_l2_predictions() click to toggle source
# File lib/finktank.rb, line 43
def get_l2_predictions()

  return get_league_predictions(14)

end
get_league_predictions(league) click to toggle source
# File lib/finktank.rb, line 14
def get_league_predictions(league)

  game = open("http://www.dectech.org/cgi-bin/new_site/GetUpcomingGames_r.pl?divID=#{league}")
  body = game.read
  hashes = JSON.parse(body)
  predictions = hashes["games"]
  return predictions

end
get_prem_predictions() click to toggle source
# File lib/finktank.rb, line 24
def get_prem_predictions()

  return get_league_predictions(0)

end
get_spl_predictions() click to toggle source
# File lib/finktank.rb, line 49
def get_spl_predictions()

  return get_league_predictions(1)

end