Class: Football::Butler::Transfers
- Defined in:
- lib/football/butler/transfers.rb
Constant Summary
Constants inherited from Base
Class Method Summary collapse
-
.by_player(player:, result: api_switch_result, filters: {}) ⇒ Object
TRANSFERS.
- .by_team(team:, 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_player(player:, result: api_switch_result, filters: {}) ⇒ Object
TRANSFERS
11 12 13 |
# File 'lib/football/butler/transfers.rb', line 11 def by_player(player:, result: api_switch_result, filters: {}) api_switch_method(__method__, { player: player, result: result, filters: filters }) end |
.by_team(team:, result: api_switch_result, filters: {}) ⇒ Object
15 16 17 |
# File 'lib/football/butler/transfers.rb', line 15 def by_team(team:, result: api_switch_result, filters: {}) api_switch_method(__method__, { team: team, result: result, filters: filters }) end |