Class: WeebSh::PreviewImage
- Inherits:
-
Object
- Object
- WeebSh::PreviewImage
- Includes:
- IDObject
- Defined in:
- lib/weeb/data.rb
Overview
Represents a preview image for toph
Direct Known Subclasses
Instance Attribute Summary collapse
-
#file_type ⇒ String
readonly
The file extension of the image.
-
#type ⇒ Symbol
readonly
The type of image this is.
-
#url ⇒ String
readonly
The url of the image.
Attributes included from IDObject
Instance Method Summary collapse
Methods included from IDObject
Instance Attribute Details
#file_type ⇒ String (readonly)
Returns the file extension of the image.
56 57 58 |
# File 'lib/weeb/data.rb', line 56 def file_type @file_type end |
#type ⇒ Symbol (readonly)
Returns the type of image this is.
53 54 55 |
# File 'lib/weeb/data.rb', line 53 def type @type end |
#url ⇒ String (readonly)
Returns the url of the image.
59 60 61 |
# File 'lib/weeb/data.rb', line 59 def url @url end |
Instance Method Details
#inspect ⇒ Object
70 71 72 |
# File 'lib/weeb/data.rb', line 70 def inspect "#<WeebSh::PreviewImage @url=#{@url.inspect} @type=#{@type.inspect}>" end |