Class: Football::Butler::FootballData::Scorers
- Defined in:
- lib/football/butler/football_data/scorers.rb
Constant Summary collapse
- PATH =
:scorers
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(id:, filters:, result:) ⇒ Object
SCORER
limit=LIMIT
/v2/competitions/id/scorers
15 16 17 18 |
# File 'lib/football/butler/football_data/scorers.rb', line 15 def by_competition(id:, filters:, result:) path = "#{Competitions::PATH}/#{id}/#{PATH}" Api.get(path: path, result: result, filters: filters) end |