Class: NBA::VideoDetail
- Inherits:
-
Shale::Mapper
- Object
- Shale::Mapper
- NBA::VideoDetail
- Defined in:
- lib/nba/video_detail.rb
Overview
Represents a video detail for a play
Instance Attribute Summary collapse
-
#description ⇒ String
Returns the play description.
-
#game_event_id ⇒ Integer
Returns the game event ID.
-
#game_id ⇒ String
Returns the game ID.
-
#player_id ⇒ Integer
Returns the player ID.
-
#team_id ⇒ Integer
Returns the team ID.
-
#video_available ⇒ Integer
Returns the video availability flag.
-
#video_id ⇒ String
Returns the video ID.
-
#video_urls ⇒ String
Returns the video URLs.
Instance Method Summary collapse
-
#available? ⇒ Boolean
Returns whether the video is available.
-
#player ⇒ Player?
Returns the player object for this video.
-
#team ⇒ Team?
Returns the team object for this video.
Instance Attribute Details
#description ⇒ String
Returns the play description
55 |
# File 'lib/nba/video_detail.rb', line 55 attribute :description, Shale::Type::String |
#game_event_id ⇒ Integer
Returns the game event ID
31 |
# File 'lib/nba/video_detail.rb', line 31 attribute :game_event_id, Shale::Type::Integer |
#game_id ⇒ String
Returns the game ID
23 |
# File 'lib/nba/video_detail.rb', line 23 attribute :game_id, Shale::Type::String |
#player_id ⇒ Integer
Returns the player ID
39 |
# File 'lib/nba/video_detail.rb', line 39 attribute :player_id, Shale::Type::Integer |
#team_id ⇒ Integer
Returns the team ID
47 |
# File 'lib/nba/video_detail.rb', line 47 attribute :team_id, Shale::Type::Integer |
#video_available ⇒ Integer
Returns the video availability flag
71 |
# File 'lib/nba/video_detail.rb', line 71 attribute :video_available, Shale::Type::Integer |
#video_id ⇒ String
Returns the video ID
15 |
# File 'lib/nba/video_detail.rb', line 15 attribute :video_id, Shale::Type::String |
#video_urls ⇒ String
Returns the video URLs
63 |
# File 'lib/nba/video_detail.rb', line 63 attribute :video_urls, Shale::Type::String |
Instance Method Details
#available? ⇒ Boolean
Returns whether the video is available
79 80 81 |
# File 'lib/nba/video_detail.rb', line 79 def available? video_available.eql?(1) end |
#player ⇒ Player?
Returns the player object for this video
89 90 91 |
# File 'lib/nba/video_detail.rb', line 89 def player Players.find(player_id) end |
#team ⇒ Team?
Returns the team object for this video
99 100 101 |
# File 'lib/nba/video_detail.rb', line 99 def team Teams.find(team_id) end |