class WeebSh::PreviewImage
Represents a preview image for toph
Attributes
file_type[R]
@return [String] the file extension of the image
type[R]
@return [Symbol] the type of image this is
url[R]
@return [String] the url of the image
Public Class Methods
new(data, interface)
click to toggle source
@!visibility private
# File lib/weeb/data.rb, line 65 def initialize(data, interface) @interface = interface @id = data['id'] @type = data['type'] @file_type = data['fileType'] @url = data['url'] end
Public Instance Methods
inspect()
click to toggle source
@!visibility private
# File lib/weeb/data.rb, line 74 def inspect "#<WeebSh::PreviewImage @url=#{@url.inspect} @type=#{@type.inspect}>" end