Class: NBA::VideoEventAsset
- Inherits:
-
Shale::Mapper
- Object
- Shale::Mapper
- NBA::VideoEventAsset
- Defined in:
- lib/nba/video_event_asset.rb
Overview
Represents a video event asset with additional asset information
Instance Attribute Summary collapse
-
#aspect_ratio ⇒ String
Returns the video aspect ratio.
-
#file_size ⇒ Integer
Returns the file size in bytes.
-
#game_event_id ⇒ Integer
Returns the game event ID.
-
#game_id ⇒ String
Returns the game ID.
-
#uuid ⇒ String
Returns the unique identifier.
-
#video_available ⇒ Integer
Returns the video availability flag.
-
#video_description ⇒ String
Returns the video description.
-
#video_duration ⇒ Integer
Returns the video duration in seconds.
-
#video_url ⇒ String
Returns the video URL.
Instance Method Summary collapse
-
#video_available? ⇒ Boolean
Returns whether video is available.
Instance Attribute Details
#aspect_ratio ⇒ String
Returns the video aspect ratio
71 |
# File 'lib/nba/video_event_asset.rb', line 71 attribute :aspect_ratio, Shale::Type::String |
#file_size ⇒ Integer
Returns the file size in bytes
63 |
# File 'lib/nba/video_event_asset.rb', line 63 attribute :file_size, Shale::Type::Integer |
#game_event_id ⇒ Integer
Returns the game event ID
23 |
# File 'lib/nba/video_event_asset.rb', line 23 attribute :game_event_id, Shale::Type::Integer |
#game_id ⇒ String
Returns the game ID
15 |
# File 'lib/nba/video_event_asset.rb', line 15 attribute :game_id, Shale::Type::String |
#uuid ⇒ String
Returns the unique identifier
55 |
# File 'lib/nba/video_event_asset.rb', line 55 attribute :uuid, Shale::Type::String |
#video_available ⇒ Integer
Returns the video availability flag
31 |
# File 'lib/nba/video_event_asset.rb', line 31 attribute :video_available, Shale::Type::Integer |
#video_description ⇒ String
Returns the video description
47 |
# File 'lib/nba/video_event_asset.rb', line 47 attribute :video_description, Shale::Type::String |
#video_duration ⇒ Integer
Returns the video duration in seconds
79 |
# File 'lib/nba/video_event_asset.rb', line 79 attribute :video_duration, Shale::Type::Integer |
#video_url ⇒ String
Returns the video URL
39 |
# File 'lib/nba/video_event_asset.rb', line 39 attribute :video_url, Shale::Type::String |
Instance Method Details
#video_available? ⇒ Boolean
Returns whether video is available
87 88 89 |
# File 'lib/nba/video_event_asset.rb', line 87 def video_available? video_available.eql?(1) end |