Class: Rubycord::EmbedImage

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



100
101
102
# File 'lib/rubycord/data/embed.rb', line 100

def embed
  @embed
end

#heightInteger (readonly)

Returns the height of the image, in pixels.

Returns:

  • (Integer)

    the height of the image, in pixels.



112
113
114
# File 'lib/rubycord/data/embed.rb', line 112

def height
  @height
end

#proxy_urlString (readonly)

Returns the proxy URL of the image.

Returns:

  • (String)

    the proxy URL of the image.



106
107
108
# File 'lib/rubycord/data/embed.rb', line 106

def proxy_url
  @proxy_url
end

#urlString (readonly)

Returns the source URL of the image.

Returns:

  • (String)

    the source URL of the image.



103
104
105
# File 'lib/rubycord/data/embed.rb', line 103

def url
  @url
end

#widthInteger (readonly)

Returns the width of the image, in pixels.

Returns:

  • (Integer)

    the width of the image, in pixels.



109
110
111
# File 'lib/rubycord/data/embed.rb', line 109

def width
  @width
end