Class: TD::Types::InputFile::Generated

Inherits:
TD::Types::InputFile show all
Defined in:
lib/tdlib/types/input_file/generated.rb

Overview

A file generated by the application.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#conversionTD::Types::String

String specifying the conversion applied to the original file; should be persistent across application restarts. Conversions beginning with ‘#’ are reserved for internal TDLib usage.

Returns:

  • (TD::Types::String)

    the current value of conversion



10
11
12
# File 'lib/tdlib/types/input_file/generated.rb', line 10

def conversion
  @conversion
end

#expected_sizeInteger

Expected size of the generated file; 0 if unknown.

Returns:

  • (Integer)

    the current value of expected_size



10
11
12
# File 'lib/tdlib/types/input_file/generated.rb', line 10

def expected_size
  @expected_size
end

#original_pathTD::Types::String?

Local path to a file from which the file is generated; may be empty if there is no such file.

Returns:

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

    the current value of original_path



10
11
12
# File 'lib/tdlib/types/input_file/generated.rb', line 10

def original_path
  @original_path
end