Class: Football::Butler::Injuries
- Defined in:
- lib/football/butler/injuries.rb
Constant Summary
Constants inherited from Base
Class Method Summary collapse
-
.by_competition_and_season(competition:, season:, result: api_switch_result, filters: {}) ⇒ Object
INJURIES.
- .by_match(match:, result: api_switch_result, filters: {}) ⇒ Object
- .by_team_and_season(team:, season:, 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_and_season(competition:, season:, result: api_switch_result, filters: {}) ⇒ Object
INJURIES
11 12 13 14 15 |
# File 'lib/football/butler/injuries.rb', line 11 def by_competition_and_season(competition:, season:, result: api_switch_result, filters: {}) api_switch_method(__method__, { competition: competition, season: season, result: result, filters: filters }) end |
.by_match(match:, result: api_switch_result, filters: {}) ⇒ Object
17 18 19 20 21 |
# File 'lib/football/butler/injuries.rb', line 17 def by_match(match:, result: api_switch_result, filters: {}) api_switch_method(__method__, { match: match, result: result, filters: filters }) end |
.by_team_and_season(team:, season:, result: api_switch_result, filters: {}) ⇒ Object
23 24 25 26 27 |
# File 'lib/football/butler/injuries.rb', line 23 def by_team_and_season(team:, season:, result: api_switch_result, filters: {}) api_switch_method(__method__, { team: team, season: season, result: result, filters: filters }) end |