Class: NBA::VideoStatusEntry
- Inherits:
-
Shale::Mapper
- Object
- Shale::Mapper
- NBA::VideoStatusEntry
- Defined in:
- lib/nba/video_status_entry.rb
Overview
Represents a video status entry
Instance Attribute Summary collapse
-
#game_date ⇒ String
Returns the game date.
-
#game_id ⇒ String
Returns the game ID.
-
#game_status ⇒ Integer
Returns the game status code.
-
#game_status_text ⇒ String
Returns the game status text.
-
#home_team_abbreviation ⇒ String
Returns the home team abbreviation.
-
#home_team_city ⇒ String
Returns the home team city.
-
#home_team_id ⇒ Integer
Returns the home team ID.
-
#home_team_name ⇒ String
Returns the home team name.
-
#is_available ⇒ Integer
Returns the video availability flag.
-
#pt_xyz_available ⇒ Integer
Returns the PT XYZ availability flag.
-
#visitor_team_abbreviation ⇒ String
Returns the visiting team abbreviation.
-
#visitor_team_city ⇒ String
Returns the visiting team city.
-
#visitor_team_id ⇒ Integer
Returns the visiting team ID.
-
#visitor_team_name ⇒ String
Returns the visiting team name.
Instance Method Summary collapse
-
#available? ⇒ Boolean
Returns whether video is available.
-
#home_team ⇒ Team?
Returns the home team object.
-
#pt_xyz_available? ⇒ Boolean
Returns whether PT XYZ data is available.
-
#visitor_team ⇒ Team?
Returns the visiting team object.
Instance Attribute Details
#game_date ⇒ String
Returns the game date
23 |
# File 'lib/nba/video_status_entry.rb', line 23 attribute :game_date, Shale::Type::String |
#game_id ⇒ String
Returns the game ID
15 |
# File 'lib/nba/video_status_entry.rb', line 15 attribute :game_id, Shale::Type::String |
#game_status ⇒ Integer
Returns the game status code
95 |
# File 'lib/nba/video_status_entry.rb', line 95 attribute :game_status, Shale::Type::Integer |
#game_status_text ⇒ String
Returns the game status text
103 |
# File 'lib/nba/video_status_entry.rb', line 103 attribute :game_status_text, Shale::Type::String |
#home_team_abbreviation ⇒ String
Returns the home team abbreviation
87 |
# File 'lib/nba/video_status_entry.rb', line 87 attribute :home_team_abbreviation, Shale::Type::String |
#home_team_city ⇒ String
Returns the home team city
71 |
# File 'lib/nba/video_status_entry.rb', line 71 attribute :home_team_city, Shale::Type::String |
#home_team_id ⇒ Integer
Returns the home team ID
63 |
# File 'lib/nba/video_status_entry.rb', line 63 attribute :home_team_id, Shale::Type::Integer |
#home_team_name ⇒ String
Returns the home team name
79 |
# File 'lib/nba/video_status_entry.rb', line 79 attribute :home_team_name, Shale::Type::String |
#is_available ⇒ Integer
Returns the video availability flag
111 |
# File 'lib/nba/video_status_entry.rb', line 111 attribute :is_available, Shale::Type::Integer |
#pt_xyz_available ⇒ Integer
Returns the PT XYZ availability flag
119 |
# File 'lib/nba/video_status_entry.rb', line 119 attribute :pt_xyz_available, Shale::Type::Integer |
#visitor_team_abbreviation ⇒ String
Returns the visiting team abbreviation
55 |
# File 'lib/nba/video_status_entry.rb', line 55 attribute :visitor_team_abbreviation, Shale::Type::String |
#visitor_team_city ⇒ String
Returns the visiting team city
39 |
# File 'lib/nba/video_status_entry.rb', line 39 attribute :visitor_team_city, Shale::Type::String |
#visitor_team_id ⇒ Integer
Returns the visiting team ID
31 |
# File 'lib/nba/video_status_entry.rb', line 31 attribute :visitor_team_id, Shale::Type::Integer |
#visitor_team_name ⇒ String
Returns the visiting team name
47 |
# File 'lib/nba/video_status_entry.rb', line 47 attribute :visitor_team_name, Shale::Type::String |
Instance Method Details
#available? ⇒ Boolean
Returns whether video is available
127 128 129 |
# File 'lib/nba/video_status_entry.rb', line 127 def available? is_available.eql?(1) end |
#home_team ⇒ Team?
Returns the home team object
147 148 149 |
# File 'lib/nba/video_status_entry.rb', line 147 def home_team Teams.find(home_team_id) end |
#pt_xyz_available? ⇒ Boolean
Returns whether PT XYZ data is available
137 138 139 |
# File 'lib/nba/video_status_entry.rb', line 137 def pt_xyz_available? pt_xyz_available.eql?(1) end |
#visitor_team ⇒ Team?
Returns the visiting team object
157 158 159 |
# File 'lib/nba/video_status_entry.rb', line 157 def visitor_team Teams.find(visitor_team_id) end |