Class: SportsApi::Football::StandingResource
- Defined in:
- lib/sports_api/football/resources/standing.rb
Instance Attribute Summary
Attributes inherited from Resource
Instance Method Summary collapse
-
#list(season:, **params) ⇒ Object
Arguments: league: [Integer](optional) - The league ID.
Methods inherited from Resource
Constructor Details
This class inherits a constructor from SportsApi::Resource
Instance Method Details
#list(season:, **params) ⇒ Object
Arguments: league: [Integer](optional) - The league ID. season: [Integer] (required) - The season of the league (= YYYY). team: [Integer] (optional) - The team ID.
10 11 12 13 |
# File 'lib/sports_api/football/resources/standing.rb', line 10 def list(season:, **params) response = get_request('standings', params: { season: season.to_s, **params }) Collection.from_response(response, type: SportsApi::Football::Standing) end |