class Discordrb::EmbedImage

An Embed image for the embed object.

Attributes

embed[R]

@return [Embed] the embed object this is based on.

height[R]

@return [Integer] the height of the image, in pixels.

proxy_url[R]

@return [String] the proxy URL of the image.

url[R]

@return [String] the source URL of the image.

width[R]

@return [Integer] the width of the image, in pixels.

Public Class Methods

new(data, embed) click to toggle source

@!visibility private

# File lib/discordrb/data/embed.rb, line 117
def initialize(data, embed)
  @embed = embed

  @url = data['url']
  @proxy_url = data['proxy_url']
  @width = data['width']
  @height = data['height']
end