Class: Football::Butler::ApiFootball::Lineups
- Inherits:
-
BaseApiFootball
- Object
- Base
- BaseApiFootball
- Football::Butler::ApiFootball::Lineups
- Defined in:
- lib/football/butler/api_football/lineups.rb
Constant Summary collapse
- PATH =
'fixtures/lineups'
Constants inherited from Base
Class Method Summary collapse
-
.by_match(id:) ⇒ Object
LINEUPS.
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:) ⇒ Object
LINEUPS
fixture required integer The id of the fixture
team integer The id of the team
player integer The id of the player
type string The type
fixtures/lineups?fixture=id
31 32 33 34 |
# File 'lib/football/butler/api_football/lineups.rb', line 31 def by_match(id:) filters = { fixture: id } Api.get(path: PATH, filters: filters, result: :response) end |