Class: NBA::BoxScoreStarterBenchStat
- Inherits:
-
Shale::Mapper
- Object
- Shale::Mapper
- NBA::BoxScoreStarterBenchStat
- Defined in:
- lib/nba/box_score_starter_bench_stat.rb
Overview
Represents starter vs bench aggregate statistics for a team in a game
Instance Attribute Summary collapse
-
#ast ⇒ Integer
Returns assists.
-
#blk ⇒ Integer
Returns blocks.
-
#dreb ⇒ Integer
Returns defensive rebounds.
-
#fg3_pct ⇒ Float
Returns three-point percentage.
-
#fg3a ⇒ Integer
Returns three-pointers attempted.
-
#fg3m ⇒ Integer
Returns three-pointers made.
-
#fg_pct ⇒ Float
Returns field goal percentage.
-
#fga ⇒ Integer
Returns field goals attempted.
-
#fgm ⇒ Integer
Returns field goals made.
-
#ft_pct ⇒ Float
Returns free throw percentage.
-
#fta ⇒ Integer
Returns free throws attempted.
-
#ftm ⇒ Integer
Returns free throws made.
-
#game_id ⇒ String
Returns the game ID.
-
#min ⇒ String
Returns minutes played.
-
#oreb ⇒ Integer
Returns offensive rebounds.
-
#pf ⇒ Integer
Returns personal fouls.
-
#plus_minus ⇒ Integer
Returns plus/minus.
-
#pts ⇒ Integer
Returns points.
-
#reb ⇒ Integer
Returns total rebounds.
-
#starters_bench ⇒ String
Returns whether this is starters or bench stats.
-
#stl ⇒ Integer
Returns steals.
-
#team_abbreviation ⇒ String
Returns the team abbreviation.
-
#team_city ⇒ String
Returns the team city.
-
#team_id ⇒ Integer
Returns the team ID.
-
#team_name ⇒ String
Returns the team name.
-
#tov ⇒ Integer
Returns turnovers.
Instance Method Summary collapse
-
#bench? ⇒ Boolean
Returns whether this is bench stats.
-
#game ⇒ Game?
Returns the game object.
-
#starters? ⇒ Boolean
Returns whether this is starter stats.
-
#team ⇒ Team?
Returns the team object.
Instance Attribute Details
#ast ⇒ Integer
Returns assists
167 |
# File 'lib/nba/box_score_starter_bench_stat.rb', line 167 attribute :ast, Shale::Type::Integer |
#blk ⇒ Integer
Returns blocks
183 |
# File 'lib/nba/box_score_starter_bench_stat.rb', line 183 attribute :blk, Shale::Type::Integer |
#dreb ⇒ Integer
Returns defensive rebounds
151 |
# File 'lib/nba/box_score_starter_bench_stat.rb', line 151 attribute :dreb, Shale::Type::Integer |
#fg3_pct ⇒ Float
Returns three-point percentage
111 |
# File 'lib/nba/box_score_starter_bench_stat.rb', line 111 attribute :fg3_pct, Shale::Type::Float |
#fg3a ⇒ Integer
Returns three-pointers attempted
103 |
# File 'lib/nba/box_score_starter_bench_stat.rb', line 103 attribute :fg3a, Shale::Type::Integer |
#fg3m ⇒ Integer
Returns three-pointers made
95 |
# File 'lib/nba/box_score_starter_bench_stat.rb', line 95 attribute :fg3m, Shale::Type::Integer |
#fg_pct ⇒ Float
Returns field goal percentage
87 |
# File 'lib/nba/box_score_starter_bench_stat.rb', line 87 attribute :fg_pct, Shale::Type::Float |
#fga ⇒ Integer
Returns field goals attempted
79 |
# File 'lib/nba/box_score_starter_bench_stat.rb', line 79 attribute :fga, Shale::Type::Integer |
#fgm ⇒ Integer
Returns field goals made
71 |
# File 'lib/nba/box_score_starter_bench_stat.rb', line 71 attribute :fgm, Shale::Type::Integer |
#ft_pct ⇒ Float
Returns free throw percentage
135 |
# File 'lib/nba/box_score_starter_bench_stat.rb', line 135 attribute :ft_pct, Shale::Type::Float |
#fta ⇒ Integer
Returns free throws attempted
127 |
# File 'lib/nba/box_score_starter_bench_stat.rb', line 127 attribute :fta, Shale::Type::Integer |
#ftm ⇒ Integer
Returns free throws made
119 |
# File 'lib/nba/box_score_starter_bench_stat.rb', line 119 attribute :ftm, Shale::Type::Integer |
#game_id ⇒ String
Returns the game ID
15 |
# File 'lib/nba/box_score_starter_bench_stat.rb', line 15 attribute :game_id, Shale::Type::String |
#min ⇒ String
Returns minutes played
63 |
# File 'lib/nba/box_score_starter_bench_stat.rb', line 63 attribute :min, Shale::Type::String |
#oreb ⇒ Integer
Returns offensive rebounds
143 |
# File 'lib/nba/box_score_starter_bench_stat.rb', line 143 attribute :oreb, Shale::Type::Integer |
#pf ⇒ Integer
Returns personal fouls
199 |
# File 'lib/nba/box_score_starter_bench_stat.rb', line 199 attribute :pf, Shale::Type::Integer |
#plus_minus ⇒ Integer
Returns plus/minus
215 |
# File 'lib/nba/box_score_starter_bench_stat.rb', line 215 attribute :plus_minus, Shale::Type::Integer |
#pts ⇒ Integer
Returns points
207 |
# File 'lib/nba/box_score_starter_bench_stat.rb', line 207 attribute :pts, Shale::Type::Integer |
#reb ⇒ Integer
Returns total rebounds
159 |
# File 'lib/nba/box_score_starter_bench_stat.rb', line 159 attribute :reb, Shale::Type::Integer |
#starters_bench ⇒ String
Returns whether this is starters or bench stats
55 |
# File 'lib/nba/box_score_starter_bench_stat.rb', line 55 attribute :starters_bench, Shale::Type::String |
#stl ⇒ Integer
Returns steals
175 |
# File 'lib/nba/box_score_starter_bench_stat.rb', line 175 attribute :stl, Shale::Type::Integer |
#team_abbreviation ⇒ String
Returns the team abbreviation
39 |
# File 'lib/nba/box_score_starter_bench_stat.rb', line 39 attribute :team_abbreviation, Shale::Type::String |
#team_city ⇒ String
Returns the team city
47 |
# File 'lib/nba/box_score_starter_bench_stat.rb', line 47 attribute :team_city, Shale::Type::String |
#team_id ⇒ Integer
Returns the team ID
23 |
# File 'lib/nba/box_score_starter_bench_stat.rb', line 23 attribute :team_id, Shale::Type::Integer |
#team_name ⇒ String
Returns the team name
31 |
# File 'lib/nba/box_score_starter_bench_stat.rb', line 31 attribute :team_name, Shale::Type::String |
#tov ⇒ Integer
Returns turnovers
191 |
# File 'lib/nba/box_score_starter_bench_stat.rb', line 191 attribute :tov, Shale::Type::Integer |
Instance Method Details
#bench? ⇒ Boolean
Returns whether this is bench stats
233 234 235 |
# File 'lib/nba/box_score_starter_bench_stat.rb', line 233 def bench? starters_bench.eql?("bench") end |
#game ⇒ Game?
Returns the game object
253 254 255 |
# File 'lib/nba/box_score_starter_bench_stat.rb', line 253 def game Games.find(game_id) end |
#starters? ⇒ Boolean
Returns whether this is starter stats
223 224 225 |
# File 'lib/nba/box_score_starter_bench_stat.rb', line 223 def starters? starters_bench.eql?("starters") end |
#team ⇒ Team?
Returns the team object
243 244 245 |
# File 'lib/nba/box_score_starter_bench_stat.rb', line 243 def team Teams.find(team_id) end |