Class: MLB::MediaPlayback

Inherits:
Shale::Mapper
  • Object
show all
Defined in:
lib/mlb/game_content.rb

Overview

Represents a media playback option

Instance Attribute Summary collapse

Instance Attribute Details

#nameString

Returns the playback name

Examples:

playback.name #=> "mp4Avc"

Returns:

  • (String)

    the name



12
# File 'lib/mlb/game_content.rb', line 12

attribute :name, Shale::Type::String

#urlString

Returns the playback URL

Examples:

playback.url #=> "https://..."

Returns:

  • (String)

    the URL



20
# File 'lib/mlb/game_content.rb', line 20

attribute :url, Shale::Type::String