Class: NBA::BoxScoreDefensiveTeamStat
- Inherits:
-
Shale::Mapper
- Object
- Shale::Mapper
- NBA::BoxScoreDefensiveTeamStat
- Defined in:
- lib/nba/box_score_defensive_team_stat.rb
Overview
Represents defensive statistics for a team in a game
Instance Attribute Summary collapse
-
#game_id ⇒ String
Returns the game ID.
-
#minutes ⇒ String
Returns minutes played.
-
#team_city ⇒ String
Returns the team city.
-
#team_id ⇒ Integer
Returns the team ID.
-
#team_name ⇒ String
Returns the team name.
-
#team_slug ⇒ String
Returns the team slug.
-
#team_tricode ⇒ String
Returns the team tricode.
Instance Method Summary collapse
-
#game ⇒ Game?
Returns the game object.
-
#team ⇒ Team?
Returns the team object.
Instance Attribute Details
#game_id ⇒ String
Returns the game ID
15 |
# File 'lib/nba/box_score_defensive_team_stat.rb', line 15 attribute :game_id, Shale::Type::String |
#minutes ⇒ String
Returns minutes played
63 |
# File 'lib/nba/box_score_defensive_team_stat.rb', line 63 attribute :minutes, Shale::Type::String |
#team_city ⇒ String
Returns the team city
31 |
# File 'lib/nba/box_score_defensive_team_stat.rb', line 31 attribute :team_city, Shale::Type::String |
#team_id ⇒ Integer
Returns the team ID
23 |
# File 'lib/nba/box_score_defensive_team_stat.rb', line 23 attribute :team_id, Shale::Type::Integer |
#team_name ⇒ String
Returns the team name
39 |
# File 'lib/nba/box_score_defensive_team_stat.rb', line 39 attribute :team_name, Shale::Type::String |
#team_slug ⇒ String
Returns the team slug
55 |
# File 'lib/nba/box_score_defensive_team_stat.rb', line 55 attribute :team_slug, Shale::Type::String |
#team_tricode ⇒ String
Returns the team tricode
47 |
# File 'lib/nba/box_score_defensive_team_stat.rb', line 47 attribute :team_tricode, Shale::Type::String |
Instance Method Details
#game ⇒ Game?
Returns the game object
81 82 83 |
# File 'lib/nba/box_score_defensive_team_stat.rb', line 81 def game Games.find(game_id) end |
#team ⇒ Team?
Returns the team object
71 72 73 |
# File 'lib/nba/box_score_defensive_team_stat.rb', line 71 def team Teams.find(team_id) end |