Class: TD::Types::WebPageInstantView

Inherits:
Base
  • Object
show all
Defined in:
lib/tdlib/types/web_page_instant_view.rb

Overview

Describes an instant view page for a web page.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#is_fullBoolean

True, if the instant view contains the full page. A network request might be needed to get the full web page instant view.

Returns:

  • (Boolean)

    the current value of is_full



10
11
12
# File 'lib/tdlib/types/web_page_instant_view.rb', line 10

def is_full
  @is_full
end

#is_rtlBoolean

True, if the instant view must be shown from right to left.

Returns:

  • (Boolean)

    the current value of is_rtl



10
11
12
# File 'lib/tdlib/types/web_page_instant_view.rb', line 10

def is_rtl
  @is_rtl
end

#page_blocksArray<TD::Types::PageBlock>

Content of the web page.

Returns:



10
11
12
# File 'lib/tdlib/types/web_page_instant_view.rb', line 10

def page_blocks
  @page_blocks
end

#versionInteger

Version of the instant view, currently can be 1 or 2.

Returns:

  • (Integer)

    the current value of version



10
11
12
# File 'lib/tdlib/types/web_page_instant_view.rb', line 10

def version
  @version
end

#view_countInteger

Number of the instant view views; 0 if unknown.

Returns:

  • (Integer)

    the current value of view_count



10
11
12
# File 'lib/tdlib/types/web_page_instant_view.rb', line 10

def view_count
  @view_count
end