Class: TD::Types::LinkPreviewType::Video
- Inherits:
-
TD::Types::LinkPreviewType
- Object
- Dry::Struct
- Base
- TD::Types::LinkPreviewType
- TD::Types::LinkPreviewType::Video
- Defined in:
- lib/tdlib/types/link_preview_type/video.rb
Overview
The link is a link to a video.
Instance Attribute Summary collapse
-
#author ⇒ TD::Types::String
Author of the video.
-
#duration ⇒ Integer
Duration of the video, in seconds; 0 if unknown.
-
#height ⇒ Integer
Expected height of the preview.
-
#mime_type ⇒ TD::Types::String
MIME type of the video file.
-
#url ⇒ TD::Types::String?
URL of the video; may be empty if none.
-
#video ⇒ TD::Types::Video?
The video description; may be null if unknown.
-
#width ⇒ Integer
Expected width of the preview.
Method Summary
Methods inherited from Base
Instance Attribute Details
#author ⇒ TD::Types::String
Author of the video.
11 12 13 |
# File 'lib/tdlib/types/link_preview_type/video.rb', line 11 def @author end |
#duration ⇒ Integer
Duration of the video, in seconds; 0 if unknown.
11 12 13 |
# File 'lib/tdlib/types/link_preview_type/video.rb', line 11 def duration @duration end |
#height ⇒ Integer
Expected height of the preview.
11 12 13 |
# File 'lib/tdlib/types/link_preview_type/video.rb', line 11 def height @height end |
#mime_type ⇒ TD::Types::String
MIME type of the video file.
11 12 13 |
# File 'lib/tdlib/types/link_preview_type/video.rb', line 11 def mime_type @mime_type end |
#url ⇒ TD::Types::String?
URL of the video; may be empty if none.
11 12 13 |
# File 'lib/tdlib/types/link_preview_type/video.rb', line 11 def url @url end |
#video ⇒ TD::Types::Video?
The video description; may be null if unknown.
11 12 13 |
# File 'lib/tdlib/types/link_preview_type/video.rb', line 11 def video @video end |
#width ⇒ Integer
Expected width of the preview.
11 12 13 |
# File 'lib/tdlib/types/link_preview_type/video.rb', line 11 def width @width end |