Sha256: b4d5135e11263dbaad94eb504f9c61a1525d092697736656ca3b7d6644a6efa2

Contents?: true

Size: 999 Bytes

Versions: 30

Compression:

Stored size: 999 Bytes

Contents

module Sportradar
  module Api
    module Football
      class Ncaafb
        class Team < Sportradar::Api::Football::Team

          def alias
            id
          end

          def players
            get_roster if @players_hash.empty?
            @players_hash.values
          end
          alias :roster :players
          
          def player_class
            Player
          end

          def path_roster
            "#{ path_base }/roster"
          end
          def path_season_stats(year = season_year, season = ncaafb_season)
            "#{path_base}/#{year}/#{ncaafb_season}/statistics"
          end

          def api
            @api || Sportradar::Api::Football::Ncaafb::Api.new
          end
          def ncaafb_season
            @type || default_season
          end

        end

      end
    end
  end
end

__END__

ncaafb = Marshal.load(File.binread('ncaafb.bin'));

t = ncaafb.teams.first
data = t.get_season_stats
data = t.get_season_stats(2016)
t.players.count

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
sportradar-api-0.11.31 lib/sportradar/api/football/ncaafb/team.rb
sportradar-api-0.11.30 lib/sportradar/api/football/ncaafb/team.rb
sportradar-api-0.11.29 lib/sportradar/api/football/ncaafb/team.rb
sportradar-api-0.11.28 lib/sportradar/api/football/ncaafb/team.rb
sportradar-api-0.11.27 lib/sportradar/api/football/ncaafb/team.rb
sportradar-api-0.11.26 lib/sportradar/api/football/ncaafb/team.rb
sportradar-api-0.11.25 lib/sportradar/api/football/ncaafb/team.rb
sportradar-api-0.11.24 lib/sportradar/api/football/ncaafb/team.rb
sportradar-api-0.11.23 lib/sportradar/api/football/ncaafb/team.rb
sportradar-api-0.11.22 lib/sportradar/api/football/ncaafb/team.rb
sportradar-api-0.11.21 lib/sportradar/api/football/ncaafb/team.rb
sportradar-api-0.11.20 lib/sportradar/api/football/ncaafb/team.rb
sportradar-api-0.11.19 lib/sportradar/api/football/ncaafb/team.rb
sportradar-api-0.11.18 lib/sportradar/api/football/ncaafb/team.rb
sportradar-api-0.11.17 lib/sportradar/api/football/ncaafb/team.rb
sportradar-api-0.11.16 lib/sportradar/api/football/ncaafb/team.rb
sportradar-api-0.11.15 lib/sportradar/api/football/ncaafb/team.rb
sportradar-api-0.11.14 lib/sportradar/api/football/ncaafb/team.rb
sportradar-api-0.11.13 lib/sportradar/api/football/ncaafb/team.rb
sportradar-api-0.11.12 lib/sportradar/api/football/ncaafb/team.rb