Class: NBA::InfographicFanDuelPlayerStat
- Inherits:
-
Shale::Mapper
- Object
- Shale::Mapper
- NBA::InfographicFanDuelPlayerStat
- Defined in:
- lib/nba/infographic_fan_duel_player_stat.rb
Overview
Represents FanDuel infographic statistics for a player in a game
Instance Attribute Summary collapse
-
#ast ⇒ Integer
Returns the assists.
-
#blk ⇒ Integer
Returns the blocks.
-
#blka ⇒ Integer
Returns the blocked attempts.
-
#dreb ⇒ Integer
Returns the defensive rebounds.
-
#fan_duel_pts ⇒ Float
Returns the FanDuel fantasy points.
-
#fg3_pct ⇒ Float
Returns the three-point percentage.
-
#fg3a ⇒ Integer
Returns the three-pointers attempted.
-
#fg3m ⇒ Integer
Returns the three-pointers made.
-
#fg_pct ⇒ Float
Returns the field goal percentage.
-
#fga ⇒ Integer
Returns the field goals attempted.
-
#fgm ⇒ Integer
Returns the field goals made.
-
#ft_pct ⇒ Float
Returns the free throw percentage.
-
#fta ⇒ Integer
Returns the free throws attempted.
-
#ftm ⇒ Integer
Returns the free throws made.
-
#game_id ⇒ String
Returns the game ID.
-
#jersey_num ⇒ String
Returns the jersey number.
-
#location ⇒ String
Returns the location (home/away).
-
#min ⇒ Float
Returns the minutes played.
-
#nba_fantasy_pts ⇒ Float
Returns the NBA fantasy points.
-
#oreb ⇒ Integer
Returns the offensive rebounds.
-
#pf ⇒ Integer
Returns the personal fouls.
-
#pfd ⇒ Integer
Returns the personal fouls drawn.
-
#player_id ⇒ Integer
Returns the player ID.
-
#player_name ⇒ String
Returns the player name.
-
#player_position ⇒ String
Returns the player position.
-
#plus_minus ⇒ Integer
Returns the plus/minus.
-
#pts ⇒ Integer
Returns the points scored.
-
#reb ⇒ Integer
Returns the total rebounds.
-
#stl ⇒ Integer
Returns the steals.
-
#team_abbreviation ⇒ String
Returns the team abbreviation.
-
#team_id ⇒ Integer
Returns the team ID.
-
#team_name ⇒ String
Returns the team name.
-
#tov ⇒ Integer
Returns the turnovers.
-
#usg_pct ⇒ Float
Returns the usage percentage.
Instance Method Summary collapse
-
#game ⇒ Game?
Returns the game object.
-
#player ⇒ Player?
Returns the player object.
-
#team ⇒ Team?
Returns the team object.
Instance Attribute Details
#ast ⇒ Integer
Returns the assists
215 |
# File 'lib/nba/infographic_fan_duel_player_stat.rb', line 215 attribute :ast, Shale::Type::Integer |
#blk ⇒ Integer
Returns the blocks
239 |
# File 'lib/nba/infographic_fan_duel_player_stat.rb', line 239 attribute :blk, Shale::Type::Integer |
#blka ⇒ Integer
Returns the blocked attempts
247 |
# File 'lib/nba/infographic_fan_duel_player_stat.rb', line 247 attribute :blka, Shale::Type::Integer |
#dreb ⇒ Integer
Returns the defensive rebounds
199 |
# File 'lib/nba/infographic_fan_duel_player_stat.rb', line 199 attribute :dreb, Shale::Type::Integer |
#fan_duel_pts ⇒ Float
Returns the FanDuel fantasy points
87 |
# File 'lib/nba/infographic_fan_duel_player_stat.rb', line 87 attribute :fan_duel_pts, Shale::Type::Float |
#fg3_pct ⇒ Float
Returns the three-point percentage
159 |
# File 'lib/nba/infographic_fan_duel_player_stat.rb', line 159 attribute :fg3_pct, Shale::Type::Float |
#fg3a ⇒ Integer
Returns the three-pointers attempted
151 |
# File 'lib/nba/infographic_fan_duel_player_stat.rb', line 151 attribute :fg3a, Shale::Type::Integer |
#fg3m ⇒ Integer
Returns the three-pointers made
143 |
# File 'lib/nba/infographic_fan_duel_player_stat.rb', line 143 attribute :fg3m, Shale::Type::Integer |
#fg_pct ⇒ Float
Returns the field goal percentage
135 |
# File 'lib/nba/infographic_fan_duel_player_stat.rb', line 135 attribute :fg_pct, Shale::Type::Float |
#fga ⇒ Integer
Returns the field goals attempted
127 |
# File 'lib/nba/infographic_fan_duel_player_stat.rb', line 127 attribute :fga, Shale::Type::Integer |
#fgm ⇒ Integer
Returns the field goals made
119 |
# File 'lib/nba/infographic_fan_duel_player_stat.rb', line 119 attribute :fgm, Shale::Type::Integer |
#ft_pct ⇒ Float
Returns the free throw percentage
183 |
# File 'lib/nba/infographic_fan_duel_player_stat.rb', line 183 attribute :ft_pct, Shale::Type::Float |
#fta ⇒ Integer
Returns the free throws attempted
175 |
# File 'lib/nba/infographic_fan_duel_player_stat.rb', line 175 attribute :fta, Shale::Type::Integer |
#ftm ⇒ Integer
Returns the free throws made
167 |
# File 'lib/nba/infographic_fan_duel_player_stat.rb', line 167 attribute :ftm, Shale::Type::Integer |
#game_id ⇒ String
Returns the game ID
15 |
# File 'lib/nba/infographic_fan_duel_player_stat.rb', line 15 attribute :game_id, Shale::Type::String |
#jersey_num ⇒ String
Returns the jersey number
63 |
# File 'lib/nba/infographic_fan_duel_player_stat.rb', line 63 attribute :jersey_num, Shale::Type::String |
#location ⇒ String
Returns the location (home/away)
79 |
# File 'lib/nba/infographic_fan_duel_player_stat.rb', line 79 attribute :location, Shale::Type::String |
#min ⇒ Float
Returns the minutes played
111 |
# File 'lib/nba/infographic_fan_duel_player_stat.rb', line 111 attribute :min, Shale::Type::Float |
#nba_fantasy_pts ⇒ Float
Returns the NBA fantasy points
95 |
# File 'lib/nba/infographic_fan_duel_player_stat.rb', line 95 attribute :nba_fantasy_pts, Shale::Type::Float |
#oreb ⇒ Integer
Returns the offensive rebounds
191 |
# File 'lib/nba/infographic_fan_duel_player_stat.rb', line 191 attribute :oreb, Shale::Type::Integer |
#pf ⇒ Integer
Returns the personal fouls
255 |
# File 'lib/nba/infographic_fan_duel_player_stat.rb', line 255 attribute :pf, Shale::Type::Integer |
#pfd ⇒ Integer
Returns the personal fouls drawn
263 |
# File 'lib/nba/infographic_fan_duel_player_stat.rb', line 263 attribute :pfd, Shale::Type::Integer |
#player_id ⇒ Integer
Returns the player ID
23 |
# File 'lib/nba/infographic_fan_duel_player_stat.rb', line 23 attribute :player_id, Shale::Type::Integer |
#player_name ⇒ String
Returns the player name
31 |
# File 'lib/nba/infographic_fan_duel_player_stat.rb', line 31 attribute :player_name, Shale::Type::String |
#player_position ⇒ String
Returns the player position
71 |
# File 'lib/nba/infographic_fan_duel_player_stat.rb', line 71 attribute :player_position, Shale::Type::String |
#plus_minus ⇒ Integer
Returns the plus/minus
279 |
# File 'lib/nba/infographic_fan_duel_player_stat.rb', line 279 attribute :plus_minus, Shale::Type::Integer |
#pts ⇒ Integer
Returns the points scored
271 |
# File 'lib/nba/infographic_fan_duel_player_stat.rb', line 271 attribute :pts, Shale::Type::Integer |
#reb ⇒ Integer
Returns the total rebounds
207 |
# File 'lib/nba/infographic_fan_duel_player_stat.rb', line 207 attribute :reb, Shale::Type::Integer |
#stl ⇒ Integer
Returns the steals
231 |
# File 'lib/nba/infographic_fan_duel_player_stat.rb', line 231 attribute :stl, Shale::Type::Integer |
#team_abbreviation ⇒ String
Returns the team abbreviation
55 |
# File 'lib/nba/infographic_fan_duel_player_stat.rb', line 55 attribute :team_abbreviation, Shale::Type::String |
#team_id ⇒ Integer
Returns the team ID
39 |
# File 'lib/nba/infographic_fan_duel_player_stat.rb', line 39 attribute :team_id, Shale::Type::Integer |
#team_name ⇒ String
Returns the team name
47 |
# File 'lib/nba/infographic_fan_duel_player_stat.rb', line 47 attribute :team_name, Shale::Type::String |
#tov ⇒ Integer
Returns the turnovers
223 |
# File 'lib/nba/infographic_fan_duel_player_stat.rb', line 223 attribute :tov, Shale::Type::Integer |
#usg_pct ⇒ Float
Returns the usage percentage
103 |
# File 'lib/nba/infographic_fan_duel_player_stat.rb', line 103 attribute :usg_pct, Shale::Type::Float |
Instance Method Details
#game ⇒ Game?
Returns the game object
307 308 309 |
# File 'lib/nba/infographic_fan_duel_player_stat.rb', line 307 def game Games.find(game_id) end |
#player ⇒ Player?
Returns the player object
287 288 289 |
# File 'lib/nba/infographic_fan_duel_player_stat.rb', line 287 def player Players.find(player_id) end |
#team ⇒ Team?
Returns the team object
297 298 299 |
# File 'lib/nba/infographic_fan_duel_player_stat.rb', line 297 def team Teams.find(team_id) end |