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

#content_typeString? (readonly)

Returns the media type of the video.

Returns:

  • (String, nil)

    the media type of the video.



182
183
184
# File 'lib/discordrb/data/embed.rb', line 182

def content_type
  @content_type
end

#descriptionString? (readonly)

Returns the alt text of the video.

Returns:

  • (String, nil)

    the alt text of the video.



179
180
181
# File 'lib/discordrb/data/embed.rb', line 179

def description
  @description
end

#embedEmbed (readonly)

Returns the embed object this is based on.

Returns:

  • (Embed)

    the embed object this is based on.



161
162
163
# File 'lib/discordrb/data/embed.rb', line 161

def embed
  @embed
end

#flagsInteger (readonly)

Returns the flags of the video, as a bitfield.

Returns:

  • (Integer)

    the flags of the video, as a bitfield.



176
177
178
# File 'lib/discordrb/data/embed.rb', line 176

def flags
  @flags
end

#heightInteger (readonly)

Returns the height of the video, in pixels.

Returns:

  • (Integer)

    the height of the video, in pixels.



173
174
175
# File 'lib/discordrb/data/embed.rb', line 173

def height
  @height
end

#placeholderString? (readonly)

Returns the thumbhash of the video.

Returns:

  • (String, nil)

    the thumbhash of the video.



185
186
187
# File 'lib/discordrb/data/embed.rb', line 185

def placeholder
  @placeholder
end

#placeholder_versionInteger? (readonly)

Returns the version of the video's thumbhash.

Returns:

  • (Integer, nil)

    the version of the video's thumbhash.



188
189
190
# File 'lib/discordrb/data/embed.rb', line 188

def placeholder_version
  @placeholder_version
end

#proxy_urlString (readonly)

Returns the proxy URL of the video.

Returns:

  • (String)

    the proxy URL of the video.



167
168
169
# File 'lib/discordrb/data/embed.rb', line 167

def proxy_url
  @proxy_url
end

#urlString (readonly)

Returns the source URL of the video.

Returns:

  • (String)

    the source URL of the video.



164
165
166
# File 'lib/discordrb/data/embed.rb', line 164

def url
  @url
end

#widthInteger (readonly)

Returns the width of the video, in pixels.

Returns:

  • (Integer)

    the width of the video, in pixels.



170
171
172
# File 'lib/discordrb/data/embed.rb', line 170

def width
  @width
end