Class: TD::Types::TextEntity
- Defined in:
- lib/tdlib/types/text_entity.rb
Overview
Represents a part of the text that needs to be formatted in some unusual way.
Instance Attribute Summary collapse
-
#length ⇒ Integer
Length of the entity, in UTF-16 code units.
-
#offset ⇒ Integer
Offset of the entity, in UTF-16 code units.
-
#type ⇒ TD::Types::TextEntityType
Type of the entity.
Method Summary
Methods inherited from Base
Instance Attribute Details
#length ⇒ Integer
Length of the entity, in UTF-16 code units.
7 8 9 |
# File 'lib/tdlib/types/text_entity.rb', line 7 def length @length end |
#offset ⇒ Integer
Offset of the entity, in UTF-16 code units.
7 8 9 |
# File 'lib/tdlib/types/text_entity.rb', line 7 def offset @offset end |
#type ⇒ TD::Types::TextEntityType
Type of the entity.
7 8 9 |
# File 'lib/tdlib/types/text_entity.rb', line 7 def type @type end |