Class: Sportradar::Nba::LeagueSchedule

Inherits:
Feeds::LeagueSchedule show all
Defined in:
lib/sportradar/nba/league_schedule.rb

Class Method Summary collapse

Methods inherited from Feeds::LeagueSchedule

#initialize, #path

Methods inherited from ApiRequest

#client, #endpoint, fetch, #fetch, #league, #path, save, #save

Constructor Details

This class inherits a constructor from Sportradar::Feeds::LeagueSchedule

Class Method Details

.games(json:) ⇒ Object



4
5
6
7
8
9
10
# File 'lib/sportradar/nba/league_schedule.rb', line 4

def self.games(json:)
  [].tap do |games|
    (json['games'] || []).each do |game_json|
      games << game_json
    end
  end
end