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

#height ⇒ Integer

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

#photo ⇒ TD::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_sizes ⇒ Array<Integer>

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

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

#type ⇒ TD::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

#width ⇒ Integer

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