Class: Telegrammer::DataTypes::PhotoSize

Inherits:
Base
  • Object
show all
Defined in:
lib/telegrammer/data_types/photo_size.rb

Overview

Telegram PhotoSize data type

See more at core.telegram.org/bots/api#photosize

Instance Attribute Summary collapse

Instance Attribute Details

#file_idString

Unique identifier for this file

Returns:

  • (String)

    the current value of file_id



11
12
13
# File 'lib/telegrammer/data_types/photo_size.rb', line 11

def file_id
  @file_id
end

#file_sizeInteger

Optional. File size

Returns:

  • (Integer)

    the current value of file_size



11
12
13
# File 'lib/telegrammer/data_types/photo_size.rb', line 11

def file_size
  @file_size
end

#heightInteger

Photo height

Returns:

  • (Integer)

    the current value of height



11
12
13
# File 'lib/telegrammer/data_types/photo_size.rb', line 11

def height
  @height
end

#widthInteger

Photo width

Returns:

  • (Integer)

    the current value of width



11
12
13
# File 'lib/telegrammer/data_types/photo_size.rb', line 11

def width
  @width
end