Class: Football::Butler::Apifootball::Lineups
- Inherits:
-
BaseApifootball
- Object
- Base
- BaseApifootball
- Football::Butler::Apifootball::Lineups
- Defined in:
- lib/football/butler/apifootball/lineups.rb
Constant Summary collapse
- PATH =
:get_lineups
Constants inherited from Base
Class Method Summary collapse
-
.by_match(id:) ⇒ Object
LINEUPS.
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
.by_match(id:) ⇒ Object
LINEUPS
action=get_lineups&match_id=id
14 15 16 17 |
# File 'lib/football/butler/apifootball/lineups.rb', line 14 def by_match(id:) filters = { match_id: id } Api.get(path: build_path(PATH), filters: filters, result: :parsed_response) end |