Class: SportsApi::Football::PlayerSquadResource
- Defined in:
- lib/sports_api/football/resources/players/player_squad.rb
Instance Attribute Summary
Attributes inherited from Resource
Instance Method Summary collapse
-
#list(**params) ⇒ Object
Arguments: team: [Integer](optional) - The team ID.
Methods inherited from Resource
Constructor Details
This class inherits a constructor from SportsApi::Resource
Instance Method Details
#list(**params) ⇒ Object
Arguments: team: [Integer](optional) - The team ID. player: [Integer](optional) - The player ID.
9 10 11 12 |
# File 'lib/sports_api/football/resources/players/player_squad.rb', line 9 def list(**params) response = get_request('players/squads', params:) Collection.from_response(response, type: SportsApi::Football::PlayerSquad) end |