class MijDiscord::Data::EmbedMedia
Attributes
height[R]
proxy_url[R]
url[R]
width[R]
Public Class Methods
new(data)
click to toggle source
# File lib/mij-discord/data/embed.rb, line 138 def initialize(data) @url, @width, @height = data['url'], data['width'], data['height'] @proxy_url = data['proxy_url'] end
Public Instance Methods
inspect()
click to toggle source
# File lib/mij-discord/data/embed.rb, line 143 def inspect MijDiscord.make_inspect(self, :url, :width, :height) end
to_hash()
click to toggle source
# File lib/mij-discord/data/embed.rb, line 147 def to_hash { 'url' => @url, 'width' => @width, 'height' => @height, }.delete_if {|_,v| v.nil? } end