Class: TD::Types::PageBlock::Embedded

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

Overview

An embedded web page.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#allow_scrollingBoolean

True, if scrolling should be allowed.

Returns:

  • (Boolean)

    the current value of allow_scrolling



12
13
14
# File 'lib/tdlib/types/page_block/embedded.rb', line 12

def allow_scrolling
  @allow_scrolling
end

#captionTD::Types::PageBlockCaption

Block caption.

Returns:



12
13
14
# File 'lib/tdlib/types/page_block/embedded.rb', line 12

def caption
  @caption
end

#heightInteger

Block height; 0 if unknown.

Returns:

  • (Integer)

    the current value of height



12
13
14
# File 'lib/tdlib/types/page_block/embedded.rb', line 12

def height
  @height
end

#htmlString

HTML-markup of the embedded page.

Returns:

  • (String)

    the current value of html



12
13
14
# File 'lib/tdlib/types/page_block/embedded.rb', line 12

def html
  @html
end

#is_full_widthBoolean

True, if the block should be full width.

Returns:

  • (Boolean)

    the current value of is_full_width



12
13
14
# File 'lib/tdlib/types/page_block/embedded.rb', line 12

def is_full_width
  @is_full_width
end

#poster_photoTD::Types::Photo?

Poster photo, if available; may be null.

Returns:



12
13
14
# File 'lib/tdlib/types/page_block/embedded.rb', line 12

def poster_photo
  @poster_photo
end

#urlString?

Web page URL, if available.

Returns:

  • (String, nil)

    the current value of url



12
13
14
# File 'lib/tdlib/types/page_block/embedded.rb', line 12

def url
  @url
end

#widthInteger

Block width; 0 if unknown.

Returns:

  • (Integer)

    the current value of width



12
13
14
# File 'lib/tdlib/types/page_block/embedded.rb', line 12

def width
  @width
end