Class: Football::Butler::FootballData::Players

Inherits:
Base
  • Object
show all
Defined in:
lib/football/butler/football_data/players.rb

Constant Summary collapse

PATH =
:players

Constants inherited from Base

Base::MSG_INVALID_CONFIG

Class Method Summary collapse

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

PLAYER v2/players/id



12
13
14
15
# File 'lib/football/butler/football_data/players.rb', line 12

def by_id(id:)
  path = "#{PATH}/#{id}"
  Api.get(path: path)
end