Class: TelegramBot::PhotoSize

Inherits:
Struct
  • Object
show all
Includes:
AutoFromMethods
Defined in:
lib/telegram_bot/photo_size.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from AutoFromMethods

included

Instance Attribute Details

#file_sizeObject

Returns the value of attribute file_size

Returns:

  • (Object)

    the current value of file_size



3
4
5
# File 'lib/telegram_bot/photo_size.rb', line 3

def file_size
  @file_size
end

#heightObject

Returns the value of attribute height

Returns:

  • (Object)

    the current value of height



3
4
5
# File 'lib/telegram_bot/photo_size.rb', line 3

def height
  @height
end

#idObject

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



3
4
5
# File 'lib/telegram_bot/photo_size.rb', line 3

def id
  @id
end

#widthObject

Returns the value of attribute width

Returns:

  • (Object)

    the current value of width



3
4
5
# File 'lib/telegram_bot/photo_size.rb', line 3

def width
  @width
end

Instance Method Details

#hash_key_aliasesObject



7
8
9
10
11
# File 'lib/telegram_bot/photo_size.rb', line 7

def hash_key_aliases
  {
    :id => :file_id
  }
end