Class: Football::Butler::Apifootball::Countries

Inherits:
BaseApifootball show all
Defined in:
lib/football/butler/apifootball/countries.rb

Constant Summary collapse

PATH =
:get_countries

Constants inherited from Base

Base::MSG_INVALID_CONFIG

Class Method Summary collapse

Methods inherited from BaseApifootball

build_path

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:) ⇒ Object

COUNTRIES action=get_leagues



13
14
15
# File 'lib/football/butler/apifootball/countries.rb', line 13

def all(result:)
  Api.get(path: build_path(PATH), result: result)
end