Sha256: c7c91bb2babd9c9d551b2ef4d941fb6892982f90bcc5a6b85feb5dcd98664885
Contents?: true
Size: 701 Bytes
Versions: 7
Compression:
Stored size: 701 Bytes
Contents
module Sportradar module Api module Football class Nfl class Team < Sportradar::Api::Football::Team def players get_roster if @players_hash.empty? @players_hash.values end alias :roster :players def player_class Player end def api @api || Sportradar::Api::Football::Nfl::Api.new end def nfl_season @type || default_season end end end end end end __END__ nfl = Marshal.load(File.binread('nfl.bin')); t = nfl.teams.first data = t.get_season_stats data = t.get_season_stats(2016) t.players.count
Version data entries
7 entries across 7 versions & 1 rubygems