Class: MLB::MediaCut

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

Overview

Represents a media image cut

Instance Attribute Summary collapse

Instance Attribute Details

#aspect_ratioString

Returns the aspect ratio

Examples:

cut.aspect_ratio #=> "16:9"

Returns:

  • (String)

    the aspect ratio



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

attribute :aspect_ratio, Shale::Type::String

#heightInteger

Returns the height

Examples:

cut.height #=> 1080

Returns:

  • (Integer)

    the height



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

attribute :height, Shale::Type::Integer

#srcString

Returns the image source URL

Examples:

cut.src #=> "https://..."

Returns:

  • (String)

    the source URL



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

attribute :src, Shale::Type::String

#widthInteger

Returns the width

Examples:

cut.width #=> 1920

Returns:

  • (Integer)

    the width



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

attribute :width, Shale::Type::Integer