Class: TD::Types::LinkPreviewType::Video

Inherits:
TD::Types::LinkPreviewType show all
Defined in:
lib/tdlib/types/link_preview_type/video.rb

Overview

The link is a link to a video.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#authorTD::Types::String

Author of the video.

Returns:

  • (TD::Types::String)

    the current value of author



11
12
13
# File 'lib/tdlib/types/link_preview_type/video.rb', line 11

def author
  @author
end

#durationInteger

Duration of the video, in seconds; 0 if unknown.

Returns:

  • (Integer)

    the current value of duration



11
12
13
# File 'lib/tdlib/types/link_preview_type/video.rb', line 11

def duration
  @duration
end

#heightInteger

Expected height of the preview.

Returns:

  • (Integer)

    the current value of height



11
12
13
# File 'lib/tdlib/types/link_preview_type/video.rb', line 11

def height
  @height
end

#mime_typeTD::Types::String

MIME type of the video file.

Returns:

  • (TD::Types::String)

    the current value of mime_type



11
12
13
# File 'lib/tdlib/types/link_preview_type/video.rb', line 11

def mime_type
  @mime_type
end

#urlTD::Types::String?

URL of the video; may be empty if none.

Returns:

  • (TD::Types::String, nil)

    the current value of url



11
12
13
# File 'lib/tdlib/types/link_preview_type/video.rb', line 11

def url
  @url
end

#videoTD::Types::Video?

The video description; may be null if unknown.

Returns:



11
12
13
# File 'lib/tdlib/types/link_preview_type/video.rb', line 11

def video
  @video
end

#widthInteger

Expected width of the preview.

Returns:

  • (Integer)

    the current value of width



11
12
13
# File 'lib/tdlib/types/link_preview_type/video.rb', line 11

def width
  @width
end