Module: Sports::Butler::SoccerApi::FootballDataOrg::Base

Included in:
Competitions, Countries, Matches, Players, Teams
Defined in:
lib/sports/butler/soccer_api/football_data_org/base.rb

Instance Method Summary collapse

Instance Method Details

#api_with_id(id, filters) ⇒ Object



12
13
14
15
# File 'lib/sports/butler/soccer_api/football_data_org/base.rb', line 12

def api_with_id(id, filters)
  api.get(path: path_with_id(id), filters: filters)
  api
end

#path_with_id(id) ⇒ Object



8
9
10
# File 'lib/sports/butler/soccer_api/football_data_org/base.rb', line 8

def path_with_id(id)
  "#{path}/#{id}"
end