Class: MLB::Highlight
- Inherits:
-
Shale::Mapper
- Object
- Shale::Mapper
- MLB::Highlight
- Defined in:
- lib/mlb/game_content.rb
Overview
Represents a game highlight
Instance Attribute Summary collapse
-
#description ⇒ String
Returns the description.
-
#duration ⇒ String
Returns the duration in seconds.
-
#headline ⇒ String
Returns the headline.
-
#id ⇒ String
Returns the highlight ID.
-
#image ⇒ MediaImage
Returns the thumbnail image.
-
#playbacks ⇒ Array<MediaPlayback>
Returns the playback options.
-
#type ⇒ String
Returns the content type.
Instance Attribute Details
#description ⇒ String
Returns the description
128 |
# File 'lib/mlb/game_content.rb', line 128 attribute :description, Shale::Type::String |
#duration ⇒ String
Returns the duration in seconds
136 |
# File 'lib/mlb/game_content.rb', line 136 attribute :duration, Shale::Type::String |
#headline ⇒ String
Returns the headline
120 |
# File 'lib/mlb/game_content.rb', line 120 attribute :headline, Shale::Type::String |
#id ⇒ String
Returns the highlight ID
104 |
# File 'lib/mlb/game_content.rb', line 104 attribute :id, Shale::Type::String |
#image ⇒ MediaImage
Returns the thumbnail image
152 |
# File 'lib/mlb/game_content.rb', line 152 attribute :image, MediaImage |
#playbacks ⇒ Array<MediaPlayback>
Returns the playback options
144 |
# File 'lib/mlb/game_content.rb', line 144 attribute :playbacks, MediaPlayback, collection: true |
#type ⇒ String
Returns the content type
112 |
# File 'lib/mlb/game_content.rb', line 112 attribute :type, Shale::Type::String |