Class: Football::Butler::Matches
- Defined in:
- lib/football/butler/matches.rb
Constant Summary
Constants inherited from Base
Class Method Summary collapse
-
.all(result: api_switch_result, filters: {}) ⇒ Object
MATCHES.
-
.by_competition(id:, result: api_switch_result, filters: {}) ⇒ Object
by COMPETITION.
- .by_competition_and_match_day(id:, match_day:, result: api_switch_result, filters: {}) ⇒ Object
- .by_competition_and_year(id:, year:, result: api_switch_result, filters: {}) ⇒ Object
-
.by_id(id:) ⇒ Object
MATCH.
-
.by_player(id:, result: api_switch_result, filters: {}) ⇒ Object
by PLAYER.
-
.by_team(id:, result: api_switch_result, filters: {}) ⇒ Object
by TEAM.
- .by_team_and_status(id:, status:, result: api_switch_result, filters: {}) ⇒ Object
- .by_team_finished(id:, result: api_switch_result, filters: {}) ⇒ Object
- .by_team_scheduled(id:, 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
.all(result: api_switch_result, filters: {}) ⇒ Object
MATCHES
16 17 18 |
# File 'lib/football/butler/matches.rb', line 16 def all(result: api_switch_result, filters: {}) api_switch_method(__method__, { result: result, filters: filters }) end |
.by_competition(id:, result: api_switch_result, filters: {}) ⇒ Object
by COMPETITION
21 22 23 |
# File 'lib/football/butler/matches.rb', line 21 def by_competition(id:, result: api_switch_result, filters: {}) api_switch_method(__method__, { id: id, result: result, filters: filters }) end |
.by_competition_and_match_day(id:, match_day:, result: api_switch_result, filters: {}) ⇒ Object
29 30 31 |
# File 'lib/football/butler/matches.rb', line 29 def by_competition_and_match_day(id:, match_day:, result: api_switch_result, filters: {}) api_switch_method(__method__, { id: id, match_day: match_day, result: result, filters: filters }) end |
.by_competition_and_year(id:, year:, result: api_switch_result, filters: {}) ⇒ Object
25 26 27 |
# File 'lib/football/butler/matches.rb', line 25 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_id(id:) ⇒ Object
MATCH
11 12 13 |
# File 'lib/football/butler/matches.rb', line 11 def by_id(id:) api_switch_method(__method__, { id: id }) end |
.by_player(id:, result: api_switch_result, filters: {}) ⇒ Object
by PLAYER
51 52 53 |
# File 'lib/football/butler/matches.rb', line 51 def by_player(id:, result: api_switch_result, filters: {}) api_switch_method(__method__, { id: id, result: result, filters: filters }) end |
.by_team(id:, result: api_switch_result, filters: {}) ⇒ Object
by TEAM
34 35 36 |
# File 'lib/football/butler/matches.rb', line 34 def by_team(id:, result: api_switch_result, filters: {}) api_switch_method(__method__, { id: id, result: result, filters: filters }) end |
.by_team_and_status(id:, status:, result: api_switch_result, filters: {}) ⇒ Object
38 39 40 |
# File 'lib/football/butler/matches.rb', line 38 def by_team_and_status(id:, status:, result: api_switch_result, filters: {}) api_switch_method(__method__, { id: id, status: status, result: result, filters: filters }) end |
.by_team_finished(id:, result: api_switch_result, filters: {}) ⇒ Object
42 43 44 |
# File 'lib/football/butler/matches.rb', line 42 def by_team_finished(id:, result: api_switch_result, filters: {}) api_switch_method(__method__, { id: id, result: result, filters: filters }) end |
.by_team_scheduled(id:, result: api_switch_result, filters: {}) ⇒ Object
46 47 48 |
# File 'lib/football/butler/matches.rb', line 46 def by_team_scheduled(id:, result: api_switch_result, filters: {}) api_switch_method(__method__, { id: id, result: result, filters: filters }) end |