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.


1914
1915
1916
# File 'lib/discordrb/data.rb', line 1914

def embed
  @embed
end

#heightInteger (readonly)

Returns the height of the image, in pixels.

Returns:

  • (Integer)

    the height of the image, in pixels.


1926
1927
1928
# File 'lib/discordrb/data.rb', line 1926

def height
  @height
end

#proxy_urlString (readonly)

Returns the proxy URL of the image.

Returns:

  • (String)

    the proxy URL of the image.


1920
1921
1922
# File 'lib/discordrb/data.rb', line 1920

def proxy_url
  @proxy_url
end

#urlString (readonly)

Returns the source URL of the image.

Returns:

  • (String)

    the source URL of the image.


1917
1918
1919
# File 'lib/discordrb/data.rb', line 1917

def url
  @url
end

#widthInteger (readonly)

Returns the width of the image, in pixels.

Returns:

  • (Integer)

    the width of the image, in pixels.


1923
1924
1925
# File 'lib/discordrb/data.rb', line 1923

def width
  @width
end