Class: TD::Types::Thumbnail

Inherits:
Base
  • Object
show all
Defined in:
lib/tdlib/types/thumbnail.rb

Overview

Represents a thumbnail.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#fileTD::Types::File

The thumbnail.

Returns:



8
9
10
# File 'lib/tdlib/types/thumbnail.rb', line 8

def file
  @file
end

#formatTD::Types::ThumbnailFormat

Thumbnail format.

Returns:



8
9
10
# File 'lib/tdlib/types/thumbnail.rb', line 8

def format
  @format
end

#heightInteger

Thumbnail height.

Returns:

  • (Integer)

    the current value of height



8
9
10
# File 'lib/tdlib/types/thumbnail.rb', line 8

def height
  @height
end

#widthInteger

Thumbnail width.

Returns:

  • (Integer)

    the current value of width



8
9
10
# File 'lib/tdlib/types/thumbnail.rb', line 8

def width
  @width
end