Class: SportsApi::Football::FixtureRoundResource
- Defined in:
- lib/sports_api/football/resources/fixtures/fixture_round.rb
Instance Attribute Summary
Attributes inherited from Resource
Instance Method Summary collapse
-
#list(league:, season:, **params) ⇒ Object
Arguments: league: [Integer](required) - The league ID.
Methods inherited from Resource
Constructor Details
This class inherits a constructor from SportsApi::Resource
Instance Method Details
#list(league:, season:, **params) ⇒ Object
Arguments: league: [Integer](required) - The league ID. season: [Integer](required) - The season year of the league (= YYYY). current: [Boolean](optional) - The current round [“true”, “false”].
10 11 12 13 |
# File 'lib/sports_api/football/resources/fixtures/fixture_round.rb', line 10 def list(league:, season:, **params) response = get_request('fixtures/rounds', params: { league:, season:, **params }) Collection.from_response(response, type: SportsApi::Football::FixtureRound) end |