Class: WeebSh::PreviewImage

Inherits:
Object
  • Object
show all
Includes:
IDObject
Defined in:
lib/weeb/data.rb

Overview

Represents a preview image for toph

Direct Known Subclasses

WeebImage

Instance Attribute Summary collapse

Attributes included from IDObject

#id

Method Summary

Methods included from IDObject

#==

Instance Attribute Details

#file_typeString (readonly)

Returns the file extension of the image.

Returns:

  • (String)

    the file extension of the image



59
60
61
# File 'lib/weeb/data.rb', line 59

def file_type
  @file_type
end

#typeSymbol (readonly)

Returns the type of image this is.

Returns:

  • (Symbol)

    the type of image this is



56
57
58
# File 'lib/weeb/data.rb', line 56

def type
  @type
end

#urlString (readonly)

Returns the url of the image.

Returns:

  • (String)

    the url of the image



62
63
64
# File 'lib/weeb/data.rb', line 62

def url
  @url
end