Class: TD::Types::PhotoSize

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

Overview

Describes an image in JPEG format.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#heightInteger

Image height.

Returns:

  • (Integer)

    the current value of height



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

def height
  @height
end

#photoTD::Types::File

Information about the image file.

Returns:



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

def photo
  @photo
end

#progressive_sizesArray<Integer>

Sizes of progressive JPEG file prefixes, which can be used to preliminarily show the image.

Returns:

  • (Array<Integer>)

    the current value of progressive_sizes



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

def progressive_sizes
  @progressive_sizes
end

#typeTD::Types::String

Returns:

  • (TD::Types::String)

    the current value of type



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

def type
  @type
end

#widthInteger

Image width.

Returns:

  • (Integer)

    the current value of width



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

def width
  @width
end