Class: TD::Types::RichText::AnchorLink

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

Overview

A link to an anchor on the same web page.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#anchor_nameTD::Types::String

The anchor name. If the name is empty, the link should bring back to top.

Returns:

  • (TD::Types::String)

    the current value of anchor_name



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

def anchor_name
  @anchor_name
end

#textTD::Types::RichText

The link text.

Returns:



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

def text
  @text
end

#urlTD::Types::String

An HTTP URL, opening the anchor.

Returns:

  • (TD::Types::String)

    the current value of url



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

def url
  @url
end