module SymbolDefaults
Field Symbol Defaults for Array
Type Conversion
Constants
- S_BOX_P
@note Field Symbols for {NbaBoxScore#homePlayers} and {NbaBoxScore#awayPlayers}
- Team ID, ESPN Player ID, Player Name (short), Position, Minutes, Field Goals Made, Field Goals Attempted, 3P Made, 3P Attempted, Free Throws Made, Free Throws Attempted, Offensive Rebounds, Defensive Rebounds, Total Rebounds, Assists, Steals, Blocks, Turnovers, Personal Fouls, Plus/Minus, Points, Starter?
- S_BOX_T
@note Field Symbols for {NbaBoxScore#homeTotals} and {NbaBoxScore#awayTotals}
- Team ID, Field Goals Made, Field Goals Attempted, 3P Made, 3P Attempted, Free Throws Made, Free Throws Attempted, Offensive Rebounds, Defensive Rebounds, Total Rebounds, Assists, Steals, Blocks, Turnovers, Personal Fouls, Plus/Minus, Points, Starter?
- S_GAME_F
@note Field Symbols for {NbaSchedule#futureGames}
- Team ID, Game #, Game Date, Home Game?, Opponent ID, Game Time, Televised?, Game DateTime, Season Type
- S_GAME_P
@note Field Symbols for {NbaSchedule#pastGames}
- Team ID, Game #, Game Date, Home Game?, Opponent ID, Win?, Team Score, Opp Score, Boxscore ID, Wins, Losses, Game DateTime, Season Type
- S_ROSTER
@note Field Symbols for {NbaRoster#players}
- Team ID, Jersey #, Player Name, ESPN Player ID, Position, Age, Height ft, Height in, Weight, College, Salary
- S_TEAM
@note Field Symbols for {NbaTeamList#teamList}
- Team ID, Team Name, Division, Conference
Public Instance Methods
defaultFormat(f_mat)
click to toggle source
Returns a default structure format
# File lib/hoopscrape/SymbolDefaults.rb, line 28 def defaultFormat(f_mat) return f_mat if %i[to_structs to_hashes].any? { |x| x.eql?(f_mat) } end