class SoccersApi::League

Constants

LEAGUE
TEAM

Public Class Methods

all() click to toggle source
# File lib/soccers_api/league.rb, line 7
def all
  SoccersApi.api_url(api_for: LEAGUE, type: "list")
end
by_country(country_id) click to toggle source
# File lib/soccers_api/league.rb, line 20
def by_country(country_id)
  SoccersApi.api_url(
    api_for: LEAGUE,
    type: "list",
    id_type: 'country_id',
    id: country_id
  )
end
by_id(id) click to toggle source
# File lib/soccers_api/league.rb, line 11
def by_id(id)
  SoccersApi.api_url(
    api_for: LEAGUE,
    type: "info",
    id_type: 'id',
    id: id
  )
end
by_season(season_id) click to toggle source
# File lib/soccers_api/team.rb, line 25
def by_season(season_id)
  SoccersApi.api_url(
    api_for: TEAM,
    type: "byseason",
    id_type: 'season_id',
    id: season_id
  )
end
standings(season_id) click to toggle source
# File lib/soccers_api/league.rb, line 29
def standings(season_id)
  SoccersApi.api_url(
    api_for: LEAGUE,
    type: "standings",
    id_type: 'season_id',
    id: season_id
  )
end