Class: Discordrb::EmbedImage

Inherits:
Object
  • Object
show all
Defined in:
lib/discordrb/data.rb

Overview

An Embed image for the embed object.

Instance Attribute Summary collapse

Instance Attribute Details

#embedEmbed (readonly)

Returns the embed object this is based on.

Returns:

  • (Embed)

    the embed object this is based on.


2174
2175
2176
# File 'lib/discordrb/data.rb', line 2174

def embed
  @embed
end

#heightInteger (readonly)

Returns the height of the image, in pixels.

Returns:

  • (Integer)

    the height of the image, in pixels.


2186
2187
2188
# File 'lib/discordrb/data.rb', line 2186

def height
  @height
end

#proxy_urlString (readonly)

Returns the proxy URL of the image.

Returns:

  • (String)

    the proxy URL of the image.


2180
2181
2182
# File 'lib/discordrb/data.rb', line 2180

def proxy_url
  @proxy_url
end

#urlString (readonly)

Returns the source URL of the image.

Returns:

  • (String)

    the source URL of the image.


2177
2178
2179
# File 'lib/discordrb/data.rb', line 2177

def url
  @url
end

#widthInteger (readonly)

Returns the width of the image, in pixels.

Returns:

  • (Integer)

    the width of the image, in pixels.


2183
2184
2185
# File 'lib/discordrb/data.rb', line 2183

def width
  @width
end