Class: Football::Butler::Players
- Defined in:
- lib/football/butler/players.rb
Constant Summary
Constants inherited from Base
Class Method Summary collapse
-
.by_id(id:) ⇒ Object
PLAYER.
- .by_id_and_season(id:, season:, result: api_switch_result, filters: {}) ⇒ Object
- .by_name(name:, result: api_switch_result) ⇒ 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_id(id:) ⇒ Object
PLAYER
12 13 14 |
# File 'lib/football/butler/players.rb', line 12 def by_id(id:) api_switch_method(__method__, { id: id }) end |
.by_id_and_season(id:, season:, result: api_switch_result, filters: {}) ⇒ Object
20 21 22 |
# File 'lib/football/butler/players.rb', line 20 def by_id_and_season(id:, season:, result: api_switch_result, filters: {}) api_switch_method(__method__, { id: id, season: season, result: result, filters: filters }) end |
.by_name(name:, result: api_switch_result) ⇒ Object
16 17 18 |
# File 'lib/football/butler/players.rb', line 16 def by_name(name:, result: api_switch_result) api_switch_method(__method__, { name: name, result: result }) end |