Class: NBA::UpcomingGame
- Inherits:
-
Shale::Mapper
- Object
- Shale::Mapper
- NBA::UpcomingGame
- Defined in:
- lib/nba/upcoming_game.rb
Overview
Represents an upcoming game
Instance Attribute Summary collapse
-
#game_date ⇒ String
Returns the game date.
-
#game_id ⇒ String
Returns the game ID.
-
#game_time ⇒ String
Returns the game time.
-
#home_team_abbreviation ⇒ String
Returns the home team abbreviation.
-
#home_team_id ⇒ Integer
Returns the home team ID.
-
#home_team_name ⇒ String
Returns the home team full name.
-
#home_team_nickname ⇒ String
Returns the home team nickname.
-
#visitor_team_abbreviation ⇒ String
Returns the visitor team abbreviation.
-
#visitor_team_id ⇒ Integer
Returns the visitor team ID.
-
#visitor_team_name ⇒ String
Returns the visitor team full name.
-
#visitor_team_nickname ⇒ String
Returns the visitor team nickname.
Instance Method Summary collapse
-
#home_team ⇒ Team?
Returns the home team object.
-
#visitor_team ⇒ Team?
Returns the visitor team object.
Instance Attribute Details
#game_date ⇒ String
Returns the game date
25 |
# File 'lib/nba/upcoming_game.rb', line 25 attribute :game_date, Shale::Type::String |
#game_id ⇒ String
Returns the game ID
17 |
# File 'lib/nba/upcoming_game.rb', line 17 attribute :game_id, Shale::Type::String |
#game_time ⇒ String
Returns the game time
33 |
# File 'lib/nba/upcoming_game.rb', line 33 attribute :game_time, Shale::Type::String |
#home_team_abbreviation ⇒ String
Returns the home team abbreviation
73 |
# File 'lib/nba/upcoming_game.rb', line 73 attribute :home_team_abbreviation, Shale::Type::String |
#home_team_id ⇒ Integer
Returns the home team ID
41 |
# File 'lib/nba/upcoming_game.rb', line 41 attribute :home_team_id, Shale::Type::Integer |
#home_team_name ⇒ String
Returns the home team full name
57 |
# File 'lib/nba/upcoming_game.rb', line 57 attribute :home_team_name, Shale::Type::String |
#home_team_nickname ⇒ String
Returns the home team nickname
89 |
# File 'lib/nba/upcoming_game.rb', line 89 attribute :home_team_nickname, Shale::Type::String |
#visitor_team_abbreviation ⇒ String
Returns the visitor team abbreviation
81 |
# File 'lib/nba/upcoming_game.rb', line 81 attribute :visitor_team_abbreviation, Shale::Type::String |
#visitor_team_id ⇒ Integer
Returns the visitor team ID
49 |
# File 'lib/nba/upcoming_game.rb', line 49 attribute :visitor_team_id, Shale::Type::Integer |
#visitor_team_name ⇒ String
Returns the visitor team full name
65 |
# File 'lib/nba/upcoming_game.rb', line 65 attribute :visitor_team_name, Shale::Type::String |
#visitor_team_nickname ⇒ String
Returns the visitor team nickname
97 |
# File 'lib/nba/upcoming_game.rb', line 97 attribute :visitor_team_nickname, Shale::Type::String |
Instance Method Details
#home_team ⇒ Team?
Returns the home team object
105 |
# File 'lib/nba/upcoming_game.rb', line 105 def home_team = Teams.find(home_team_id) |
#visitor_team ⇒ Team?
Returns the visitor team object
113 |
# File 'lib/nba/upcoming_game.rb', line 113 def visitor_team = Teams.find(visitor_team_id) |