Class: Football::Butler::Transfers

Inherits:
Base
  • Object
show all
Defined in:
lib/football/butler/transfers.rb

Constant Summary

Constants inherited from Base

Base::MSG_INVALID_CONFIG

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_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