module SportsDataApi::Nfl

Constants

API_VERSION
BASE_URL
DIR
SPORT

Public Class Methods

boxscore(game_id) click to toggle source
# File lib/sports_data_api/nfl.rb, line 28
def boxscore(game_id)
  Game.new(response_json("/games/#{game_id}/boxscore.json"))
end
game_roster(game_id) click to toggle source
# File lib/sports_data_api/nfl.rb, line 36
def game_roster(game_id)
  Game.new(response_json("/games/#{game_id}/roster.json"))
end
game_statistics(game_id) click to toggle source
# File lib/sports_data_api/nfl.rb, line 32
def game_statistics(game_id)
  Game.new(response_json("/games/#{game_id}/statistics.json"))
end
schedule(year, season) click to toggle source
# File lib/sports_data_api/nfl.rb, line 20
def schedule(year, season)
  Season.new(response_json("/games/#{year}/#{season}/schedule.json"))
end
team_roster(team_id) click to toggle source
# File lib/sports_data_api/nfl.rb, line 24
def team_roster(team_id)
  Team.new(response_json("/teams/#{team_id}/full_roster.json"))
end
teams() click to toggle source
# File lib/sports_data_api/nfl.rb, line 40
def teams
  Teams.new(response_json('/league/hierarchy.json'))
end