Class: Football::Butler::Scorers
- Defined in:
- lib/football/butler/scorers.rb
Direct Known Subclasses
Constant Summary
Constants inherited from Base
Class Method Summary collapse
-
.by_competition(id:, result: api_switch_result, filters: {}) ⇒ Object
SCORER.
- .by_competition_and_year(id:, year:, result: api_switch_result, filters: {}) ⇒ Object
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:, result: api_switch_result, filters: {}) ⇒ Object
SCORER
12 13 14 |
# File 'lib/football/butler/scorers.rb', line 12 def by_competition(id:, result: api_switch_result, filters: {}) api_switch_method(__method__, { id: id, result: result, filters: filters }) end |
.by_competition_and_year(id:, year:, result: api_switch_result, filters: {}) ⇒ Object
16 17 18 |
# File 'lib/football/butler/scorers.rb', line 16 def by_competition_and_year(id:, year:, result: api_switch_result, filters: {}) api_switch_method(__method__, { id: id, year: year, result: result, filters: filters }) end |