Class: NBA::PlayoffSeries
- Inherits:
-
Shale::Mapper
- Object
- Shale::Mapper
- NBA::PlayoffSeries
- Defined in:
- lib/nba/playoff_series.rb
Overview
Represents a playoff series
Instance Attribute Summary collapse
-
#game_id ⇒ String
Returns the game ID.
-
#game_num ⇒ Integer
Returns the game number in the series.
-
#home_team_id ⇒ Integer
Returns the home team ID.
-
#series_id ⇒ String
Returns the series ID.
-
#visitor_team_id ⇒ Integer
Returns the visitor team ID.
Instance Method Summary collapse
-
#game ⇒ Game?
Returns the game object.
-
#home_team ⇒ Team?
Returns the home team object.
-
#visitor_team ⇒ Team?
Returns the visitor team object.
Instance Attribute Details
#game_id ⇒ String
Returns the game ID
12 |
# File 'lib/nba/playoff_series.rb', line 12 attribute :game_id, Shale::Type::String |
#game_num ⇒ Integer
Returns the game number in the series
44 |
# File 'lib/nba/playoff_series.rb', line 44 attribute :game_num, Shale::Type::Integer |
#home_team_id ⇒ Integer
Returns the home team ID
20 |
# File 'lib/nba/playoff_series.rb', line 20 attribute :home_team_id, Shale::Type::Integer |
#series_id ⇒ String
Returns the series ID
36 |
# File 'lib/nba/playoff_series.rb', line 36 attribute :series_id, Shale::Type::String |
#visitor_team_id ⇒ Integer
Returns the visitor team ID
28 |
# File 'lib/nba/playoff_series.rb', line 28 attribute :visitor_team_id, Shale::Type::Integer |
Instance Method Details
#game ⇒ Game?
Returns the game object
72 73 74 |
# File 'lib/nba/playoff_series.rb', line 72 def game Games.find(game_id) end |
#home_team ⇒ Team?
Returns the home team object
52 53 54 |
# File 'lib/nba/playoff_series.rb', line 52 def home_team Teams.find(home_team_id) end |
#visitor_team ⇒ Team?
Returns the visitor team object
62 63 64 |
# File 'lib/nba/playoff_series.rb', line 62 def visitor_team Teams.find(visitor_team_id) end |