class SoccersApi::Stats

Constants

STATS

Public Class Methods

by_league(league_id) click to toggle source
# File lib/soccers_api/stats.rb, line 16
def by_league(league_id)
  SoccersApi.api_url(
    api_for: STATS,
    type: "league",
    id_type: 'league_id',
    id: league_id
  )
end
by_match(match_id) click to toggle source
# File lib/soccers_api/stats.rb, line 7
def by_match(match_id)
  SoccersApi.api_url(
    api_for: STATS,
    type: "match",
    id_type: 'match_id',
    id: match_id
  )
end
by_player(player_id) click to toggle source
# File lib/soccers_api/stats.rb, line 43
def by_player(player_id)
  SoccersApi.api_url(
    api_for: STATS,
    type: "player",
    id_type: 'player_id',
    id: player_id
  )
end
by_season(season_id) click to toggle source
# File lib/soccers_api/stats.rb, line 25
def by_season(season_id)
  SoccersApi.api_url(
    api_for: STATS,
    type: "season",
    id_type: 'season_id',
    id: season_id
  )
end
by_team(team_id) click to toggle source
# File lib/soccers_api/stats.rb, line 34
def by_team(team_id)
  SoccersApi.api_url(
    api_for: STATS,
    type: "team",
    id_type: 'team_id',
    id: team_id
  )
end