Class: Discordrb::EmbedImage
- Inherits:
-
Object
- Object
- Discordrb::EmbedImage
- Defined in:
- lib/discordrb/data/embed.rb
Overview
An Embed image for the embed object.
Instance Attribute Summary collapse
-
#embed ⇒ Embed
readonly
The embed object this is based on.
-
#height ⇒ Integer
readonly
The height of the image, in pixels.
-
#proxy_url ⇒ String
readonly
The proxy URL of the image.
-
#url ⇒ String
readonly
The source URL of the image.
-
#width ⇒ Integer
readonly
The width of the image, in pixels.
Instance Attribute Details
#embed ⇒ Embed (readonly)
Returns the embed object this is based on.
109 110 111 |
# File 'lib/discordrb/data/embed.rb', line 109 def @embed end |
#height ⇒ Integer (readonly)
Returns the height of the image, in pixels.
121 122 123 |
# File 'lib/discordrb/data/embed.rb', line 121 def height @height end |
#proxy_url ⇒ String (readonly)
Returns the proxy URL of the image.
115 116 117 |
# File 'lib/discordrb/data/embed.rb', line 115 def proxy_url @proxy_url end |
#url ⇒ String (readonly)
Returns the source URL of the image.
112 113 114 |
# File 'lib/discordrb/data/embed.rb', line 112 def url @url end |
#width ⇒ Integer (readonly)
Returns the width of the image, in pixels.
118 119 120 |
# File 'lib/discordrb/data/embed.rb', line 118 def width @width end |