Class: SportsApi::Football::TeamSeasonResource
- Defined in:
- lib/sports_api/football/resources/teams/team_season.rb
Instance Attribute Summary
Attributes inherited from Resource
Instance Method Summary collapse
-
#list(team:) ⇒ Object
Arguments: team: [Integer](required) - The team ID.
Methods inherited from Resource
Constructor Details
This class inherits a constructor from SportsApi::Resource
Instance Method Details
#list(team:) ⇒ Object
Arguments: team: [Integer](required) - The team ID.
8 9 10 11 |
# File 'lib/sports_api/football/resources/teams/team_season.rb', line 8 def list(team:) response = get_request('teams/seasons', params: { team: team.to_s }) Collection.from_response(response, type: SportsApi::Football::TeamSeason) end |