class SoccersApi::Game
Constants
- GAME
Public Class Methods
bench(id)
click to toggle source
# File lib/soccers_api/game.rb, line 25 def bench(id) SoccersApi.api_url( api_for: GAME, type: "match_bench", id_type: 'id', id: id ) end
by_date(date)
click to toggle source
# File lib/soccers_api/game.rb, line 61 def by_date(date) SoccersApi.api_url( api_for: GAME, type: "schedule", id_type: 'd', id: data.strftime("%F") ) end
by_date_and_country(data:, country_id:)
click to toggle source
# File lib/soccers_api/game.rb, line 70 def by_date_and_country(data:, country_id:) SoccersApi.api_url( api_for: GAME, type: "schedule", id_type: 'd', id: data.strftime("%F"), id_type_two: 'country_id', id_two:country_id ) end
by_date_and_league(data:, league_id:)
click to toggle source
# File lib/soccers_api/game.rb, line 81 def by_date_and_league(data:, league_id:) SoccersApi.api_url( api_for: GAME, type: "schedule", id_type: 'd', id: data.strftime("%F"), id_type_two: 'league_id', id_two:league_id ) end
by_date_and_season(data:, season_id:)
click to toggle source
# File lib/soccers_api/game.rb, line 92 def by_date_and_season(data:, season_id:) SoccersApi.api_url( api_for: GAME, type: "schedule", id_type: 'd', id: data.strftime("%F"), id_type_two: 'season_id', id_two:season_id ) end
by_id(id)
click to toggle source
# File lib/soccers_api/game.rb, line 7 def by_id(id) SoccersApi.api_url( api_for: GAME, type: "info", id_type: 'id', id: id ) end
by_round(round_id)
click to toggle source
# File lib/soccers_api/game.rb, line 123 def by_round(round_id) SoccersApi.api_url( api_for: GAME, type: "round", id_type: 'round_id', id: round_id ) end
by_round_and_team(team_id:, round_id:)
click to toggle source
# File lib/soccers_api/game.rb, line 132 def by_round_and_team(team_id:, round_id:) SoccersApi.api_url( api_for: GAME, type: "round", id_type: 'round_id', id: round_id, id_type_two: 'team_id', id_two:team_id ) end
by_season(season_id)
click to toggle source
# File lib/soccers_api/game.rb, line 103 def by_season(season_id) SoccersApi.api_url( api_for: GAME, type: "season", id_type: 'season_id', id: season_id ) end
by_season_and_team(team_id:, season_id:)
click to toggle source
# File lib/soccers_api/game.rb, line 112 def by_season_and_team(team_id:, season_id:) SoccersApi.api_url( api_for: GAME, type: "season", id_type: 'season_id', id: season_id, id_type_two: 'team_id', id_two:team_id ) end
commentary(id)
click to toggle source
# File lib/soccers_api/game.rb, line 43 def commentary(id) SoccersApi.api_url( api_for: GAME, type: "match_comments", id_type: 'id', id: id ) end
events(id)
click to toggle source
# File lib/soccers_api/game.rb, line 34 def events(id) SoccersApi.api_url( api_for: GAME, type: "match_events", id_type: 'id', id: id ) end
lineups(id)
click to toggle source
# File lib/soccers_api/game.rb, line 16 def lineups(id) SoccersApi.api_url( api_for: GAME, type: "match_lineups", id_type: 'id', id: id ) end
trend_analysis(id)
click to toggle source
# File lib/soccers_api/game.rb, line 52 def trend_analysis(id) SoccersApi.api_url( api_for: GAME, type: "match_trends", id_type: 'id', id: id ) end