Class: TD::Types::File
Overview
Represents a file.
Instance Attribute Summary collapse
-
#expected_size ⇒ Integer
Expected file size in case the exact file size is unknown, but an approximate size is known.
-
#id ⇒ Integer
Unique file identifier.
-
#local ⇒ TD::Types::LocalFile
Information about the local copy of the file.
-
#remote ⇒ TD::Types::RemoteFile
Information about the remote copy of the file.
-
#size ⇒ Integer
File size; 0 if unknown.
Method Summary
Methods inherited from Base
Instance Attribute Details
#expected_size ⇒ Integer
Expected file size in case the exact file size is unknown, but an approximate size is known. Can be used to show download/upload progress.
11 12 13 |
# File 'lib/tdlib/types/file.rb', line 11 def expected_size @expected_size end |
#id ⇒ Integer
Unique file identifier.
11 12 13 |
# File 'lib/tdlib/types/file.rb', line 11 def id @id end |
#local ⇒ TD::Types::LocalFile
Information about the local copy of the file.
11 12 13 |
# File 'lib/tdlib/types/file.rb', line 11 def local @local end |
#remote ⇒ TD::Types::RemoteFile
Information about the remote copy of the file.
11 12 13 |
# File 'lib/tdlib/types/file.rb', line 11 def remote @remote end |
#size ⇒ Integer
File size; 0 if unknown.
11 12 13 |
# File 'lib/tdlib/types/file.rb', line 11 def size @size end |