Class: Discordrb::EmbedImage
- Inherits:
-
Object
- Object
- Discordrb::EmbedImage
- Defined in:
- lib/discordrb/data.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.
2196 2197 2198 |
# File 'lib/discordrb/data.rb', line 2196 def @embed end |
#height ⇒ Integer (readonly)
Returns the height of the image, in pixels.
2208 2209 2210 |
# File 'lib/discordrb/data.rb', line 2208 def height @height end |
#proxy_url ⇒ String (readonly)
Returns the proxy URL of the image.
2202 2203 2204 |
# File 'lib/discordrb/data.rb', line 2202 def proxy_url @proxy_url end |
#url ⇒ String (readonly)
Returns the source URL of the image.
2199 2200 2201 |
# File 'lib/discordrb/data.rb', line 2199 def url @url end |
#width ⇒ Integer (readonly)
Returns the width of the image, in pixels.
2205 2206 2207 |
# File 'lib/discordrb/data.rb', line 2205 def width @width end |