Class: Discordrb::EmbedVideo

Inherits:
Object
  • Object
show all
Defined in:
lib/discordrb/data/embed.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.



130
131
132
# File 'lib/discordrb/data/embed.rb', line 130

def embed
  @embed
end

#heightInteger (readonly)

Returns the height of the video, in pixels.

Returns:

  • (Integer)

    the height of the video, in pixels.



139
140
141
# File 'lib/discordrb/data/embed.rb', line 139

def height
  @height
end

#urlString (readonly)

Returns the source URL of the video.

Returns:

  • (String)

    the source URL of the video.



133
134
135
# File 'lib/discordrb/data/embed.rb', line 133

def url
  @url
end

#widthInteger (readonly)

Returns the width of the video, in pixels.

Returns:

  • (Integer)

    the width of the video, in pixels.



136
137
138
# File 'lib/discordrb/data/embed.rb', line 136

def width
  @width
end