class Football::Butler::ApiFootball::Trophies
Constants
- PATH
Public Class Methods
by_coach(coach:, result:, filters:)
click to toggle source
/trophies?coach={coach}
# File lib/football/butler/api_football/trophies.rb, line 28 def by_coach(coach:, result:, filters:) filters.merge!({ coach: coach }) Api.get(path: PATH, filters: filters, result: result) end
by_player(player:, result:, filters:)
click to toggle source
TROPHIES
player integer The id of the player
coach integer The id of the coach
/trophies?player={player}
# File lib/football/butler/api_football/trophies.rb, line 22 def by_player(player:, result:, filters:) filters.merge!({ player: player }) Api.get(path: PATH, filters: filters, result: result) end