Class: NBA::CumeStatsPlayerGame

Inherits:
Shale::Mapper
  • Object
show all
Defined in:
lib/nba/cume_stats_player_game.rb

Overview

Represents a single game in cumulative player statistics

Instance Attribute Summary collapse

Instance Attribute Details

#astInteger

Returns the assists

Examples:

game.ast #=> 5

Returns:

  • (Integer)

    the assists



175
# File 'lib/nba/cume_stats_player_game.rb', line 175

attribute :ast, Shale::Type::Integer

#blkInteger

Returns the blocks

Examples:

game.blk #=> 1

Returns:

  • (Integer)

    the blocks



207
# File 'lib/nba/cume_stats_player_game.rb', line 207

attribute :blk, Shale::Type::Integer

#drebInteger

Returns the defensive rebounds

Examples:

game.dreb #=> 6

Returns:

  • (Integer)

    the defensive rebounds



159
# File 'lib/nba/cume_stats_player_game.rb', line 159

attribute :dreb, Shale::Type::Integer

#fg3_pctFloat

Returns the three-point field goal percentage

Examples:

game.fg3_pct #=> 0.375

Returns:

  • (Float)

    the three-point field goal percentage



119
# File 'lib/nba/cume_stats_player_game.rb', line 119

attribute :fg3_pct, Shale::Type::Float

#fg3aInteger

Returns the three-point field goals attempted

Examples:

game.fg3a #=> 8

Returns:

  • (Integer)

    the three-point field goals attempted



111
# File 'lib/nba/cume_stats_player_game.rb', line 111

attribute :fg3a, Shale::Type::Integer

#fg3mInteger

Returns the three-point field goals made

Examples:

game.fg3m #=> 3

Returns:

  • (Integer)

    the three-point field goals made



103
# File 'lib/nba/cume_stats_player_game.rb', line 103

attribute :fg3m, Shale::Type::Integer

#fg_pctFloat

Returns the field goal percentage

Examples:

game.fg_pct #=> 0.500

Returns:

  • (Float)

    the field goal percentage



95
# File 'lib/nba/cume_stats_player_game.rb', line 95

attribute :fg_pct, Shale::Type::Float

#fgaInteger

Returns the field goals attempted

Examples:

game.fga #=> 20

Returns:

  • (Integer)

    the field goals attempted



87
# File 'lib/nba/cume_stats_player_game.rb', line 87

attribute :fga, Shale::Type::Integer

#fgmInteger

Returns the field goals made

Examples:

game.fgm #=> 10

Returns:

  • (Integer)

    the field goals made



79
# File 'lib/nba/cume_stats_player_game.rb', line 79

attribute :fgm, Shale::Type::Integer

#ft_pctFloat

Returns the free throw percentage

Examples:

game.ft_pct #=> 0.875

Returns:

  • (Float)

    the free throw percentage



143
# File 'lib/nba/cume_stats_player_game.rb', line 143

attribute :ft_pct, Shale::Type::Float

#ftaInteger

Returns the free throws attempted

Examples:

game.fta #=> 8

Returns:

  • (Integer)

    the free throws attempted



135
# File 'lib/nba/cume_stats_player_game.rb', line 135

attribute :fta, Shale::Type::Integer

#ftmInteger

Returns the free throws made

Examples:

game.ftm #=> 7

Returns:

  • (Integer)

    the free throws made



127
# File 'lib/nba/cume_stats_player_game.rb', line 127

attribute :ftm, Shale::Type::Integer

#game_dateString

Returns the game date

Examples:

game.game_date #=> "2024-10-22"

Returns:

  • (String)

    the game date



31
# File 'lib/nba/cume_stats_player_game.rb', line 31

attribute :game_date, Shale::Type::String

#game_idString

Returns the game ID

Examples:

game.game_id #=> "0022400001"

Returns:

  • (String)

    the game ID



15
# File 'lib/nba/cume_stats_player_game.rb', line 15

attribute :game_id, Shale::Type::String

#matchupString

Returns the matchup description

Examples:

game.matchup #=> "GSW vs. LAL"

Returns:

  • (String)

    the matchup description



23
# File 'lib/nba/cume_stats_player_game.rb', line 23

attribute :matchup, Shale::Type::String

#minInteger

Returns the minutes played

Examples:

game.min #=> 35

Returns:

  • (Integer)

    the minutes played



63
# File 'lib/nba/cume_stats_player_game.rb', line 63

attribute :min, Shale::Type::Integer

#orebInteger

Returns the offensive rebounds

Examples:

game.oreb #=> 2

Returns:

  • (Integer)

    the offensive rebounds



151
# File 'lib/nba/cume_stats_player_game.rb', line 151

attribute :oreb, Shale::Type::Integer

#pfInteger

Returns the personal fouls

Examples:

game.pf #=> 3

Returns:

  • (Integer)

    the personal fouls



183
# File 'lib/nba/cume_stats_player_game.rb', line 183

attribute :pf, Shale::Type::Integer

#ptsInteger

Returns the points

Examples:

game.pts #=> 30

Returns:

  • (Integer)

    the points



215
# File 'lib/nba/cume_stats_player_game.rb', line 215

attribute :pts, Shale::Type::Integer

#rebInteger

Returns the total rebounds

Examples:

game.reb #=> 8

Returns:

  • (Integer)

    the total rebounds



167
# File 'lib/nba/cume_stats_player_game.rb', line 167

attribute :reb, Shale::Type::Integer

#secInteger

Returns the seconds played

Examples:

game.sec #=> 42

Returns:

  • (Integer)

    the seconds played



71
# File 'lib/nba/cume_stats_player_game.rb', line 71

attribute :sec, Shale::Type::Integer

#stlInteger

Returns the steals

Examples:

game.stl #=> 2

Returns:

  • (Integer)

    the steals



191
# File 'lib/nba/cume_stats_player_game.rb', line 191

attribute :stl, Shale::Type::Integer

#tovInteger

Returns the turnovers

Examples:

game.tov #=> 3

Returns:

  • (Integer)

    the turnovers



199
# File 'lib/nba/cume_stats_player_game.rb', line 199

attribute :tov, Shale::Type::Integer

#vs_team_cityString

Returns the opposing team city

Examples:

game.vs_team_city #=> "Los Angeles"

Returns:

  • (String)

    the opposing team city



47
# File 'lib/nba/cume_stats_player_game.rb', line 47

attribute :vs_team_city, Shale::Type::String

#vs_team_idInteger

Returns the opposing team ID

Examples:

game.vs_team_id #=> 1610612747

Returns:

  • (Integer)

    the opposing team ID



39
# File 'lib/nba/cume_stats_player_game.rb', line 39

attribute :vs_team_id, Shale::Type::Integer

#vs_team_nameString

Returns the opposing team name

Examples:

game.vs_team_name #=> "Lakers"

Returns:

  • (String)

    the opposing team name



55
# File 'lib/nba/cume_stats_player_game.rb', line 55

attribute :vs_team_name, Shale::Type::String