class Football::Butler::ApiFootball::Injuries
Constants
- PATH
Public Class Methods
by_competition_and_season(competition:, season:, result:, filters:)
click to toggle source
Injuries
league integer The id of the league
season integer 4 characters YYYY The season of the league, required with league, team and player parameters
fixture integer The id of the fixture
team integer The id of the team
player integer The id of the player
date stringYYYY-MM-DD A valid date
timezone string A valid timezone from the endpoint Timezone
/injuries?ccompetition={competition}&season={season}
# File lib/football/butler/api_football/injuries.rb, line 42 def by_competition_and_season(competition:, season:, result:, filters:) filters.merge!({ league: competition, season: season }) Api.get(path: PATH, result: result, filters: filters) end
by_match(match:, result:, filters:)
click to toggle source
/injuries?fixture={match}
# File lib/football/butler/api_football/injuries.rb, line 48 def by_match(match:, result:, filters:) filters.merge!({ fixture: match }) Api.get(path: PATH, result: result, filters: filters) end
by_team_and_season(team:, season:, result:, filters:)
click to toggle source
/injuries?team={team}&season={season}
# File lib/football/butler/api_football/injuries.rb, line 54 def by_team_and_season(team:, season:, result:, filters:) filters.merge!({ team: team, season: season }) Api.get(path: PATH, result: result, filters: filters) end