Class: Football::Butler::Apifootball::Predictions
- Inherits:
-
BaseApifootball
- Object
- Base
- BaseApifootball
- Football::Butler::Apifootball::Predictions
- Defined in:
- lib/football/butler/apifootball/predictions.rb
Constant Summary collapse
- PATH =
:get_predictions
Constants inherited from Base
Class Method Summary collapse
-
.by_match(id:, filters:, result:) ⇒ Object
PREDICTIONS.
Methods inherited from BaseApifootball
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
from Start date (yyyy-mm-dd) to Stop date (yyyy-mm-dd) country_id Country ID - if set only leagues from specific country will be returned (Optional) league_id League ID - if set events from specific league will be returned (Optional) match_id Match ID - if set only details from specific match will be returned (Optional)
get_predictions&match_id=id
20 21 22 23 |
# File 'lib/football/butler/apifootball/predictions.rb', line 20 def by_match(id:, filters:, result:) filters.merge!(match_id: id) Api.get(path: build_path(PATH), filters: filters, result: result) end |