Class: SportsApi::Football::FixtureLineupResource

Inherits:
Resource
  • Object
show all
Defined in:
lib/sports_api/football/resources/fixtures/fixture_lineup.rb

Instance Attribute Summary

Attributes inherited from Resource

#client

Instance Method Summary collapse

Methods inherited from Resource

#get_request, #initialize

Constructor Details

This class inherits a constructor from SportsApi::Resource

Instance Method Details

#list(fixture:, **params) ⇒ Object

Arguments: fixture: [Integer](required) - The fixture ID. team: [Integer](optional) - The team ID. player: [Integer](optional) - The player ID. type: [String](optional) - The type of statistics [“Formation”, “Coach”, “Start XI”, “Substitutes”].



11
12
13
14
# File 'lib/sports_api/football/resources/fixtures/fixture_lineup.rb', line 11

def list(fixture:, **params)
  response = get_request('fixtures/lineups', params: { fixture:, **params })
  Collection.from_response(response, type: SportsApi::Football::FixtureLineup)
end