Class: Rubycord::EmbedThumbnail

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

Overview

An Embed thumbnail 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.



152
153
154
# File 'lib/rubycord/data/embed.rb', line 152

def embed
  @embed
end

#heightInteger (readonly)

Returns the height of this thumbnail file, in pixels.

Returns:

  • (Integer)

    the height of this thumbnail file, in pixels.



165
166
167
# File 'lib/rubycord/data/embed.rb', line 165

def height
  @height
end

#proxy_urlString (readonly)

Returns the thumbnail's proxy URL - I'm not sure what exactly this does, but I think it has something to do with CDNs.

Returns:

  • (String)

    the thumbnail's proxy URL - I'm not sure what exactly this does, but I think it has something to do with CDNs.



159
160
161
# File 'lib/rubycord/data/embed.rb', line 159

def proxy_url
  @proxy_url
end

#urlString (readonly)

Returns the CDN URL this thumbnail can be downloaded at.

Returns:

  • (String)

    the CDN URL this thumbnail can be downloaded at.



155
156
157
# File 'lib/rubycord/data/embed.rb', line 155

def url
  @url
end

#widthInteger (readonly)

Returns the width of this thumbnail file, in pixels.

Returns:

  • (Integer)

    the width of this thumbnail file, in pixels.



162
163
164
# File 'lib/rubycord/data/embed.rb', line 162

def width
  @width
end