Class: Discordrb::EmbedThumbnail
- Inherits:
-
Object
- Object
- Discordrb::EmbedThumbnail
- Defined in:
- lib/discordrb/data.rb
Overview
An Embed thumbnail for the embed object
Instance Attribute Summary collapse
-
#embed ⇒ Embed
readonly
The embed object this is based on.
-
#height ⇒ Integer
readonly
The height of this thumbnail file, in pixels.
-
#proxy_url ⇒ String
readonly
The thumbnail's proxy URL - I'm not sure what exactly this does, but I think it has something to do with CDNs.
-
#url ⇒ String
readonly
The CDN URL this thumbnail can be downloaded at.
-
#width ⇒ Integer
readonly
The width of this thumbnail file, in pixels.
Instance Attribute Details
#embed ⇒ Embed (readonly)
Returns the embed object this is based on.
1577 1578 1579 |
# File 'lib/discordrb/data.rb', line 1577 def @embed end |
#height ⇒ Integer (readonly)
Returns the height of this thumbnail file, in pixels.
1590 1591 1592 |
# File 'lib/discordrb/data.rb', line 1590 def height @height end |
#proxy_url ⇒ String (readonly)
Returns the thumbnail's proxy URL - I'm not sure what exactly this does, but I think it has something to do with CDNs.
1584 1585 1586 |
# File 'lib/discordrb/data.rb', line 1584 def proxy_url @proxy_url end |
#url ⇒ String (readonly)
Returns the CDN URL this thumbnail can be downloaded at.
1580 1581 1582 |
# File 'lib/discordrb/data.rb', line 1580 def url @url end |
#width ⇒ Integer (readonly)
Returns the width of this thumbnail file, in pixels.
1587 1588 1589 |
# File 'lib/discordrb/data.rb', line 1587 def width @width end |