Class: Football::Butler::ApiFootball::Predictions
- Inherits:
-
BaseApiFootball
- Object
- Base
- BaseApiFootball
- Football::Butler::ApiFootball::Predictions
- Defined in:
- lib/football/butler/api_football/predictions.rb
Constant Summary collapse
- PATH =
:predictions
Constants inherited from Base
Class Method Summary collapse
-
.by_match(id:, filters:, result:) ⇒ Object
PREDICTIONS.
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:, filters:, result:) ⇒ Object
PREDICTIONS
fixture required integer The id of the fixture
predictions&fixture=id
19 20 21 22 |
# File 'lib/football/butler/api_football/predictions.rb', line 19 def by_match(id:, filters:, result:) filters.merge!(fixture: id) Api.get(path: PATH, filters: filters, result: result) end |