class Football::Butler::ApiFootball::HeadToHead
Constants
- PATH
Public Class Methods
by_teams(team_id:, second_team_id:, filters:, result:)
click to toggle source
HEAD TO HEAD
h2h required stringID-ID The ids of the teams
date stringYYYY-MM-DD league integer The id of the league
season integer 4 characters YYYY The season of the league
last integer For the X last fixtures
next integer For the X next fixtures
from stringYYYY-MM-DD to stringYYYY-MM-DD status string The status short of the fixture
timezone string A valid timezone from the endpoint Timezone
fixtures/headtohead?h2h={team_id-second_team_id}
# File lib/football/butler/api_football/head_to_head.rb, line 48 def by_teams(team_id:, second_team_id:, filters:, result:) filters.merge!(h2h: "#{team_id}-#{second_team_id}") Api.get(path: PATH, filters: filters, result: result) end