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