Class: Football::Butler::ApiFootball::TopScorers
- Inherits:
-
BaseApiFootball
- Object
- Base
- BaseApiFootball
- Football::Butler::ApiFootball::TopScorers
- Defined in:
- lib/football/butler/api_football/top_scorers.rb
Constant Summary collapse
- PATH =
'players/topscorers'
Constants inherited from Base
Class Method Summary collapse
Methods inherited from Base
api_class, api_switch, api_switch_method, api_switch_result, error_message, invalid_config_result, not_found_result, reached_limit?, this_class, unsupported_api_call, unsupported_api_endpoint
Class Method Details
.by_competition_and_year(id:, year:, result:, filters:) ⇒ Object
TOP SCORER
/players/topscorers?league=id&season=year
14 15 16 17 |
# File 'lib/football/butler/api_football/top_scorers.rb', line 14 def by_competition_and_year(id:, year:, result:, filters:) filters.merge!({ league: id, season: year }) Api.get(path: PATH, filters: filters, result: result) end |