Class: TD::Types::RichText::Icon
- Inherits:
-
TD::Types::RichText
- Object
- Dry::Struct
- Base
- TD::Types::RichText
- TD::Types::RichText::Icon
- Defined in:
- lib/tdlib/types/rich_text/icon.rb
Overview
A small image inside the text.
Instance Attribute Summary collapse
-
#document ⇒ TD::Types::Document
The image represented as a document.
-
#height ⇒ Integer
Height of a bounding box in which the image should be shown; 0 if unknown.
-
#width ⇒ Integer
Width of a bounding box in which the image should be shown; 0 if unknown.
Method Summary
Methods inherited from Base
Instance Attribute Details
#document ⇒ TD::Types::Document
The image represented as a document. The image can be in GIF, JPEG or PNG format.
8 9 10 |
# File 'lib/tdlib/types/rich_text/icon.rb', line 8 def document @document end |
#height ⇒ Integer
Height of a bounding box in which the image should be shown; 0 if unknown.
8 9 10 |
# File 'lib/tdlib/types/rich_text/icon.rb', line 8 def height @height end |
#width ⇒ Integer
Width of a bounding box in which the image should be shown; 0 if unknown.
8 9 10 |
# File 'lib/tdlib/types/rich_text/icon.rb', line 8 def width @width end |