Class: NBA::BoxScoreFourFactorsTeamStat
- Inherits:
-
Shale::Mapper
- Object
- Shale::Mapper
- NBA::BoxScoreFourFactorsTeamStat
- Defined in:
- lib/nba/box_score_four_factors_team_stat.rb
Overview
Represents a team’s four factors box score statistics for a game
Instance Attribute Summary collapse
-
#efg_pct ⇒ Float
Returns effective field goal percentage.
-
#fta_rate ⇒ Float
Returns free throw attempt rate.
-
#game_id ⇒ String
Returns the game ID.
-
#min ⇒ String
Returns total minutes played.
-
#opp_efg_pct ⇒ Float
Returns opponent effective field goal percentage.
-
#opp_fta_rate ⇒ Float
Returns opponent free throw attempt rate.
-
#opp_oreb_pct ⇒ Float
Returns opponent offensive rebound percentage.
-
#opp_tov_pct ⇒ Float
Returns opponent turnover percentage.
-
#oreb_pct ⇒ Float
Returns offensive rebound percentage.
-
#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_pct ⇒ Float
Returns turnover percentage.
Instance Method Summary collapse
-
#game ⇒ Game?
Returns the game object for this box score.
-
#team ⇒ Team?
Returns the team object.
Instance Attribute Details
#efg_pct ⇒ Float
Returns effective field goal percentage
63 |
# File 'lib/nba/box_score_four_factors_team_stat.rb', line 63 attribute :efg_pct, Shale::Type::Float |
#fta_rate ⇒ Float
Returns free throw attempt rate
71 |
# File 'lib/nba/box_score_four_factors_team_stat.rb', line 71 attribute :fta_rate, Shale::Type::Float |
#game_id ⇒ String
Returns the game ID
15 |
# File 'lib/nba/box_score_four_factors_team_stat.rb', line 15 attribute :game_id, Shale::Type::String |
#min ⇒ String
Returns total minutes played
55 |
# File 'lib/nba/box_score_four_factors_team_stat.rb', line 55 attribute :min, Shale::Type::String |
#opp_efg_pct ⇒ Float
Returns opponent effective field goal percentage
95 |
# File 'lib/nba/box_score_four_factors_team_stat.rb', line 95 attribute :opp_efg_pct, Shale::Type::Float |
#opp_fta_rate ⇒ Float
Returns opponent free throw attempt rate
103 |
# File 'lib/nba/box_score_four_factors_team_stat.rb', line 103 attribute :opp_fta_rate, Shale::Type::Float |
#opp_oreb_pct ⇒ Float
Returns opponent offensive rebound percentage
119 |
# File 'lib/nba/box_score_four_factors_team_stat.rb', line 119 attribute :opp_oreb_pct, Shale::Type::Float |
#opp_tov_pct ⇒ Float
Returns opponent turnover percentage
111 |
# File 'lib/nba/box_score_four_factors_team_stat.rb', line 111 attribute :opp_tov_pct, Shale::Type::Float |
#oreb_pct ⇒ Float
Returns offensive rebound percentage
87 |
# File 'lib/nba/box_score_four_factors_team_stat.rb', line 87 attribute :oreb_pct, Shale::Type::Float |
#team_abbreviation ⇒ String
Returns the team abbreviation
39 |
# File 'lib/nba/box_score_four_factors_team_stat.rb', line 39 attribute :team_abbreviation, Shale::Type::String |
#team_city ⇒ String
Returns the team city
47 |
# File 'lib/nba/box_score_four_factors_team_stat.rb', line 47 attribute :team_city, Shale::Type::String |
#team_id ⇒ Integer
Returns the team ID
23 |
# File 'lib/nba/box_score_four_factors_team_stat.rb', line 23 attribute :team_id, Shale::Type::Integer |
#team_name ⇒ String
Returns the team name
31 |
# File 'lib/nba/box_score_four_factors_team_stat.rb', line 31 attribute :team_name, Shale::Type::String |
#tov_pct ⇒ Float
Returns turnover percentage
79 |
# File 'lib/nba/box_score_four_factors_team_stat.rb', line 79 attribute :tov_pct, Shale::Type::Float |
Instance Method Details
#game ⇒ Game?
Returns the game object for this box score
137 138 139 |
# File 'lib/nba/box_score_four_factors_team_stat.rb', line 137 def game Games.find(game_id) end |
#team ⇒ Team?
Returns the team object
127 128 129 |
# File 'lib/nba/box_score_four_factors_team_stat.rb', line 127 def team Teams.find(team_id) end |