Class: Discordrb::EmbedVideo
- Inherits:
-
Object
- Object
- Discordrb::EmbedVideo
- Defined in:
- lib/discordrb/data/embed.rb
Overview
An Embed video for the embed object
Instance Attribute Summary collapse
-
#content_type ⇒ String?
readonly
The media type of the video.
-
#description ⇒ String?
readonly
The alt text of the video.
-
#embed ⇒ Embed
readonly
The embed object this is based on.
-
#flags ⇒ Integer
readonly
The flags of the video, as a bitfield.
-
#height ⇒ Integer
readonly
The height of the video, in pixels.
-
#placeholder ⇒ String?
readonly
The thumbhash of the video.
-
#placeholder_version ⇒ Integer?
readonly
The version of the video's thumbhash.
-
#proxy_url ⇒ String
readonly
The proxy URL of the video.
-
#url ⇒ String
readonly
The source URL of the video.
-
#width ⇒ Integer
readonly
The width of the video, in pixels.
Instance Attribute Details
#content_type ⇒ String? (readonly)
Returns the media type of the video.
182 183 184 |
# File 'lib/discordrb/data/embed.rb', line 182 def content_type @content_type end |
#description ⇒ String? (readonly)
Returns the alt text of the video.
179 180 181 |
# File 'lib/discordrb/data/embed.rb', line 179 def description @description end |
#embed ⇒ Embed (readonly)
Returns the embed object this is based on.
161 162 163 |
# File 'lib/discordrb/data/embed.rb', line 161 def @embed end |
#flags ⇒ Integer (readonly)
Returns the flags of the video, as a bitfield.
176 177 178 |
# File 'lib/discordrb/data/embed.rb', line 176 def flags @flags end |
#height ⇒ Integer (readonly)
Returns the height of the video, in pixels.
173 174 175 |
# File 'lib/discordrb/data/embed.rb', line 173 def height @height end |
#placeholder ⇒ String? (readonly)
Returns the thumbhash of the video.
185 186 187 |
# File 'lib/discordrb/data/embed.rb', line 185 def placeholder @placeholder end |
#placeholder_version ⇒ Integer? (readonly)
Returns 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_url ⇒ String (readonly)
Returns the proxy URL of the video.
167 168 169 |
# File 'lib/discordrb/data/embed.rb', line 167 def proxy_url @proxy_url end |
#url ⇒ String (readonly)
Returns the source URL of the video.
164 165 166 |
# File 'lib/discordrb/data/embed.rb', line 164 def url @url end |
#width ⇒ Integer (readonly)
Returns the width of the video, in pixels.
170 171 172 |
# File 'lib/discordrb/data/embed.rb', line 170 def width @width end |