Class: Football::Butler::Apifootball::Competitions
- Inherits:
-
BaseApifootball
- Object
- Base
- BaseApifootball
- Football::Butler::Apifootball::Competitions
- Defined in:
- lib/football/butler/apifootball/competitions.rb
Constant Summary collapse
- PATH =
:get_leagues
Constants inherited from Base
Class Method Summary collapse
-
.all(result:, filters:) ⇒ Object
COMPETITIONS.
-
.by_country(id:, result:) ⇒ Object
COMPETITION action=get_leagues&country_id=id.
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
.all(result:, filters:) ⇒ Object
COMPETITIONS
country_id Country ID - if set only leagues from specific country will be returned (Optional)
action=get_league
23 24 25 |
# File 'lib/football/butler/apifootball/competitions.rb', line 23 def all(result:, filters:) Api.get(path: build_path(PATH), result: result, filters: filters) end |