Class: Discordrb::EmbedVideo

Inherits:
Object
  • Object
show all
Defined in:
lib/discordrb/data.rb

Overview

An Embed video for the embed object

Instance Attribute Summary collapse

Instance Attribute Details

#embedEmbed (readonly)

Returns the embed object this is based on.

Returns:

  • (Embed)

    the embed object this is based on.


2202
2203
2204
# File 'lib/discordrb/data.rb', line 2202

def embed
  @embed
end

#heightInteger (readonly)

Returns the height of the video, in pixels.

Returns:

  • (Integer)

    the height of the video, in pixels.


2211
2212
2213
# File 'lib/discordrb/data.rb', line 2211

def height
  @height
end

#urlString (readonly)

Returns the source URL of the video.

Returns:

  • (String)

    the source URL of the video.


2205
2206
2207
# File 'lib/discordrb/data.rb', line 2205

def url
  @url
end

#widthInteger (readonly)

Returns the width of the video, in pixels.

Returns:

  • (Integer)

    the width of the video, in pixels.


2208
2209
2210
# File 'lib/discordrb/data.rb', line 2208

def width
  @width
end