Class: Discordrb::EmbedImage

Inherits:
Object
  • Object
show all
Defined in:
lib/discordrb/data/embed.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.



102
103
104
# File 'lib/discordrb/data/embed.rb', line 102

def embed
  @embed
end

#heightInteger (readonly)

Returns the height of the image, in pixels.

Returns:

  • (Integer)

    the height of the image, in pixels.



114
115
116
# File 'lib/discordrb/data/embed.rb', line 114

def height
  @height
end

#proxy_urlString (readonly)

Returns the proxy URL of the image.

Returns:

  • (String)

    the proxy URL of the image.



108
109
110
# File 'lib/discordrb/data/embed.rb', line 108

def proxy_url
  @proxy_url
end

#urlString (readonly)

Returns the source URL of the image.

Returns:

  • (String)

    the source URL of the image.



105
106
107
# File 'lib/discordrb/data/embed.rb', line 105

def url
  @url
end

#widthInteger (readonly)

Returns the width of the image, in pixels.

Returns:

  • (Integer)

    the width of the image, in pixels.



111
112
113
# File 'lib/discordrb/data/embed.rb', line 111

def width
  @width
end