Class: NBA::TeamOnOffPlayerSummary
- Inherits:
-
Shale::Mapper
- Object
- Shale::Mapper
- NBA::TeamOnOffPlayerSummary
- Defined in:
- lib/nba/team_on_off_player_summary.rb
Overview
Represents team on/off player summary statistics
Instance Attribute Summary collapse
-
#court_status ⇒ String?
Returns whether player is on or off court.
-
#def_rating ⇒ Float?
Returns defensive rating.
-
#gp ⇒ Integer?
Returns games played.
-
#group_set ⇒ String?
Returns the group set.
-
#min ⇒ Float?
Returns minutes played.
-
#net_rating ⇒ Float?
Returns net rating.
-
#off_rating ⇒ Float?
Returns offensive rating.
-
#plus_minus ⇒ Float?
Returns plus/minus rating.
-
#team_abbreviation ⇒ String?
Returns the team abbreviation.
-
#team_id ⇒ Integer?
Returns the team ID.
-
#team_name ⇒ String?
Returns the team name.
-
#vs_player_id ⇒ Integer?
Returns the opponent player ID.
-
#vs_player_name ⇒ String?
Returns the opponent player name.
Instance Method Summary collapse
-
#off_court? ⇒ Boolean
Returns whether the player is off court.
-
#on_court? ⇒ Boolean
Returns whether the player is on court.
Instance Attribute Details
#court_status ⇒ String?
Returns whether player is on or off court
65 |
# File 'lib/nba/team_on_off_player_summary.rb', line 65 attribute :court_status, Shale::Type::String |
#def_rating ⇒ Float?
Returns defensive rating
105 |
# File 'lib/nba/team_on_off_player_summary.rb', line 105 attribute :def_rating, Shale::Type::Float |
#gp ⇒ Integer?
Returns games played
73 |
# File 'lib/nba/team_on_off_player_summary.rb', line 73 attribute :gp, Shale::Type::Integer |
#group_set ⇒ String?
Returns the group set
17 |
# File 'lib/nba/team_on_off_player_summary.rb', line 17 attribute :group_set, Shale::Type::String |
#min ⇒ Float?
Returns minutes played
81 |
# File 'lib/nba/team_on_off_player_summary.rb', line 81 attribute :min, Shale::Type::Float |
#net_rating ⇒ Float?
Returns net rating
113 |
# File 'lib/nba/team_on_off_player_summary.rb', line 113 attribute :net_rating, Shale::Type::Float |
#off_rating ⇒ Float?
Returns offensive rating
97 |
# File 'lib/nba/team_on_off_player_summary.rb', line 97 attribute :off_rating, Shale::Type::Float |
#plus_minus ⇒ Float?
Returns plus/minus rating
89 |
# File 'lib/nba/team_on_off_player_summary.rb', line 89 attribute :plus_minus, Shale::Type::Float |
#team_abbreviation ⇒ String?
Returns the team abbreviation
33 |
# File 'lib/nba/team_on_off_player_summary.rb', line 33 attribute :team_abbreviation, Shale::Type::String |
#team_id ⇒ Integer?
Returns the team ID
25 |
# File 'lib/nba/team_on_off_player_summary.rb', line 25 attribute :team_id, Shale::Type::Integer |
#team_name ⇒ String?
Returns the team name
41 |
# File 'lib/nba/team_on_off_player_summary.rb', line 41 attribute :team_name, Shale::Type::String |
#vs_player_id ⇒ Integer?
Returns the opponent player ID
49 |
# File 'lib/nba/team_on_off_player_summary.rb', line 49 attribute :vs_player_id, Shale::Type::Integer |
#vs_player_name ⇒ String?
Returns the opponent player name
57 |
# File 'lib/nba/team_on_off_player_summary.rb', line 57 attribute :vs_player_name, Shale::Type::String |
Instance Method Details
#off_court? ⇒ Boolean
Returns whether the player is off court
131 132 133 |
# File 'lib/nba/team_on_off_player_summary.rb', line 131 def off_court? court_status.eql?("Off") end |
#on_court? ⇒ Boolean
Returns whether the player is on court
121 122 123 |
# File 'lib/nba/team_on_off_player_summary.rb', line 121 def on_court? court_status.eql?("On") end |