Class: Football::Butler::Teams
- Defined in:
- lib/football/butler/teams.rb
Constant Summary
Constants inherited from Base
Class Method Summary collapse
-
.by_competition(id:, result: api_switch_result, filters: {}) ⇒ Object
COMPETITION.
- .by_competition_and_year(id:, year:, result: api_switch_result, filters: {}) ⇒ Object
- .by_country_name(name:) ⇒ Object
-
.by_id(id:) ⇒ Object
TEAM.
- .by_name(name:) ⇒ 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(id:, result: api_switch_result, filters: {}) ⇒ Object
COMPETITION
25 26 27 |
# File 'lib/football/butler/teams.rb', line 25 def by_competition(id:, result: api_switch_result, filters: {}) api_switch_method(__method__, { id: id, result: result, filters: filters }) end |
.by_competition_and_year(id:, year:, result: api_switch_result, filters: {}) ⇒ Object
29 30 31 |
# File 'lib/football/butler/teams.rb', line 29 def by_competition_and_year(id:, year:, result: api_switch_result, filters: {}) api_switch_method(__method__, { id: id, year: year, result: result, filters: filters }) end |
.by_country_name(name:) ⇒ Object
20 21 22 |
# File 'lib/football/butler/teams.rb', line 20 def by_country_name(name:) api_switch_method(__method__, { name: name }) end |
.by_id(id:) ⇒ Object
TEAM
12 13 14 |
# File 'lib/football/butler/teams.rb', line 12 def by_id(id:) api_switch_method(__method__, { id: id }) end |
.by_name(name:) ⇒ Object
16 17 18 |
# File 'lib/football/butler/teams.rb', line 16 def by_name(name:) api_switch_method(__method__, { name: name }) end |