Class: Football::Butler::Coachs
- Defined in:
- lib/football/butler/coachs.rb
Constant Summary
Constants inherited from Base
Class Method Summary collapse
-
.by_id(id:, result: api_switch_result, filters: {}) ⇒ Object
COACHS.
- .by_team(team:, result: api_switch_result, filters: {}) ⇒ Object
- .search_by_name(name:, 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_id(id:, result: api_switch_result, filters: {}) ⇒ Object
COACHS
11 12 13 |
# File 'lib/football/butler/coachs.rb', line 11 def by_id(id:, result: api_switch_result, filters: {}) api_switch_method(__method__, { id: id, result: result, filters: filters }) end |
.by_team(team:, result: api_switch_result, filters: {}) ⇒ Object
19 20 21 |
# File 'lib/football/butler/coachs.rb', line 19 def by_team(team:, result: api_switch_result, filters: {}) api_switch_method(__method__, { team: team, result: result, filters: filters }) end |
.search_by_name(name:, result: api_switch_result, filters: {}) ⇒ Object
15 16 17 |
# File 'lib/football/butler/coachs.rb', line 15 def search_by_name(name:, result: api_switch_result, filters: {}) api_switch_method(__method__, { name: name, result: result, filters: filters }) end |