Class: TD::Types::TextEntity

Inherits:
Base
  • Object
show all
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

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#lengthInteger

Length of the entity, in UTF-16 code points.

Returns:

  • (Integer)

    the current value of length



7
8
9
# File 'lib/tdlib/types/text_entity.rb', line 7

def length
  @length
end

#offsetInteger

Offset of the entity in UTF-16 code points.

Returns:

  • (Integer)

    the current value of offset



7
8
9
# File 'lib/tdlib/types/text_entity.rb', line 7

def offset
  @offset
end

#typeTD::Types::TextEntityType

Type of the entity.

Returns:



7
8
9
# File 'lib/tdlib/types/text_entity.rb', line 7

def type
  @type
end