Class: NBA::TeamSeasonRank
- Inherits:
-
Shale::Mapper
- Object
- Shale::Mapper
- NBA::TeamSeasonRank
- Defined in:
- lib/nba/team_season_rank.rb
Overview
Represents team season rankings from the TeamInfoCommon endpoint
Instance Attribute Summary collapse
-
#ast_pg ⇒ Float?
Returns the assists per game.
-
#ast_rank ⇒ Integer?
Returns the assists per game rank.
-
#league_id ⇒ String?
Returns the league ID.
-
#opp_pts_pg ⇒ Float?
Returns the opponent points per game.
-
#opp_pts_rank ⇒ Integer?
Returns the opponent points per game rank.
-
#pts_pg ⇒ Float?
Returns the points per game.
-
#pts_rank ⇒ Integer?
Returns the points per game rank.
-
#reb_pg ⇒ Float?
Returns the rebounds per game.
-
#reb_rank ⇒ Integer?
Returns the rebounds per game rank.
-
#season_id ⇒ String?
Returns the season ID.
-
#team_id ⇒ Integer?
Returns the team ID.
Instance Method Summary collapse
-
#team ⇒ Team?
Returns the team associated with this rank.
Instance Attribute Details
#ast_pg ⇒ Float?
Returns the assists per game
82 |
# File 'lib/nba/team_season_rank.rb', line 82 attribute :ast_pg, Shale::Type::Float |
#ast_rank ⇒ Integer?
Returns the assists per game rank
74 |
# File 'lib/nba/team_season_rank.rb', line 74 attribute :ast_rank, Shale::Type::Integer |
#league_id ⇒ String?
Returns the league ID
18 |
# File 'lib/nba/team_season_rank.rb', line 18 attribute :league_id, Shale::Type::String |
#opp_pts_pg ⇒ Float?
Returns the opponent points per game
98 |
# File 'lib/nba/team_season_rank.rb', line 98 attribute :opp_pts_pg, Shale::Type::Float |
#opp_pts_rank ⇒ Integer?
Returns the opponent points per game rank
90 |
# File 'lib/nba/team_season_rank.rb', line 90 attribute :opp_pts_rank, Shale::Type::Integer |
#pts_pg ⇒ Float?
Returns the points per game
50 |
# File 'lib/nba/team_season_rank.rb', line 50 attribute :pts_pg, Shale::Type::Float |
#pts_rank ⇒ Integer?
Returns the points per game rank
42 |
# File 'lib/nba/team_season_rank.rb', line 42 attribute :pts_rank, Shale::Type::Integer |
#reb_pg ⇒ Float?
Returns the rebounds per game
66 |
# File 'lib/nba/team_season_rank.rb', line 66 attribute :reb_pg, Shale::Type::Float |
#reb_rank ⇒ Integer?
Returns the rebounds per game rank
58 |
# File 'lib/nba/team_season_rank.rb', line 58 attribute :reb_rank, Shale::Type::Integer |
#season_id ⇒ String?
Returns the season ID
26 |
# File 'lib/nba/team_season_rank.rb', line 26 attribute :season_id, Shale::Type::String |
#team_id ⇒ Integer?
Returns the team ID
34 |
# File 'lib/nba/team_season_rank.rb', line 34 attribute :team_id, Shale::Type::Integer |
Instance Method Details
#team ⇒ Team?
Returns the team associated with this rank
106 107 108 |
# File 'lib/nba/team_season_rank.rb', line 106 def team Teams.find(team_id) end |