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