Class: TD::Types::PageBlock::Video

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

Overview

A video.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#captionTD::Types::PageBlockCaption

Video caption.

Returns:



8
9
10
# File 'lib/tdlib/types/page_block/video.rb', line 8

def caption
  @caption
end

#is_loopedBoolean

True, if the video should be looped.

Returns:

  • (Boolean)

    the current value of is_looped



8
9
10
# File 'lib/tdlib/types/page_block/video.rb', line 8

def is_looped
  @is_looped
end

#need_autoplayBoolean

True, if the video should be played automatically.

Returns:

  • (Boolean)

    the current value of need_autoplay



8
9
10
# File 'lib/tdlib/types/page_block/video.rb', line 8

def need_autoplay
  @need_autoplay
end

#videoTD::Types::Video?

Video file; may be null.

Returns:



8
9
10
# File 'lib/tdlib/types/page_block/video.rb', line 8

def video
  @video
end