Class: Football::Butler::HeadToHead
- Defined in:
- lib/football/butler/head_to_head.rb
Constant Summary
Constants inherited from Base
Class Method Summary collapse
-
.by_match(id:) ⇒ Object
HEAD TO HEAD.
- .by_teams(team_id:, second_team_id:, filters: {}, 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_match(id:) ⇒ Object
HEAD TO HEAD
12 13 14 |
# File 'lib/football/butler/head_to_head.rb', line 12 def by_match(id:) api_switch_method(__method__, { id: id }) end |
.by_teams(team_id:, second_team_id:, filters: {}, result: api_switch_result) ⇒ Object
16 17 18 19 20 21 22 23 24 |
# File 'lib/football/butler/head_to_head.rb', line 16 def by_teams(team_id:, second_team_id:, filters: {}, result: api_switch_result) api_switch_method(__method__, { team_id: team_id, second_team_id: second_team_id, filters: filters, result: result } ) end |