Class: TD::Types::PageBlock::AuthorDate

Inherits:
TD::Types::PageBlock show all
Defined in:
lib/tdlib/types/page_block/author_date.rb

Overview

The author and publishing date of a page.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#authorTD::Types::RichText

Author.

Returns:



6
7
8
# File 'lib/tdlib/types/page_block/author_date.rb', line 6

def author
  @author
end

#publish_dateInteger

Point in time (Unix timestamp) when the article was published; 0 if unknown.

Returns:

  • (Integer)

    the current value of publish_date



6
7
8
# File 'lib/tdlib/types/page_block/author_date.rb', line 6

def publish_date
  @publish_date
end