Class: TD::Types::RichText::Reference

Inherits:
TD::Types::RichText show all
Defined in:
lib/tdlib/types/rich_text/reference.rb

Overview

A reference to a richTexts object on the same page.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#anchor_nameTD::Types::String

The name of a Anchor object, which is the first element of the target s object.

Returns:

  • (TD::Types::String)

    the current value of anchor_name



8
9
10
# File 'lib/tdlib/types/rich_text/reference.rb', line 8

def anchor_name
  @anchor_name
end

#textTD::Types::RichText

The text.

Returns:



8
9
10
# File 'lib/tdlib/types/rich_text/reference.rb', line 8

def text
  @text
end

#urlTD::Types::String

An HTTP URL, opening the reference.

Returns:

  • (TD::Types::String)

    the current value of url



8
9
10
# File 'lib/tdlib/types/rich_text/reference.rb', line 8

def url
  @url
end