class Discordrb::EmbedVideo

An Embed video for the embed object

Attributes

embed[R]

@return [Embed] the embed object this is based on.

height[R]

@return [Integer] the height of the video, in pixels.

url[R]

@return [String] the source URL of the video.

width[R]

@return [Integer] the width of the video, in pixels.

Public Class Methods

new(data, embed) click to toggle source

@!visibility private

# File lib/discordrb/data/embed.rb, line 142
def initialize(data, embed)
  @embed = embed

  @url = data['url']
  @width = data['width']
  @height = data['height']
end