Class: SportsApi::Football::FixtureRoundResource

Inherits:
Resource
  • Object
show all
Defined in:
lib/sports_api/football/resources/fixtures/fixture_round.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(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