Class: TelegramBot::Document

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

Instance Attribute Summary collapse

Class Method Summary collapse

Methods included from AutoFromMethods

included

Instance Attribute Details

#file_nameObject

Returns the value of attribute file_name

Returns:

  • (Object)

    the current value of file_name



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

def file_name
  @file_name
end

#file_sizeObject

Returns the value of attribute file_size

Returns:

  • (Object)

    the current value of file_size



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

def file_size
  @file_size
end

#idObject

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



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

def id
  @id
end

#meme_typeObject

Returns the value of attribute meme_type

Returns:

  • (Object)

    the current value of meme_type



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

def meme_type
  @meme_type
end

#thumbObject

Returns the value of attribute thumb

Returns:

  • (Object)

    the current value of thumb



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

def thumb
  @thumb
end

Class Method Details

.extra_typesObject



13
14
15
16
17
# File 'lib/telegram_bot/document.rb', line 13

def self.extra_types
  {
    thumb: TelegramBot::PhotoSize
  }
end

.hash_key_aliasesObject



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

def self.hash_key_aliases
  {
    :id => :file_id
  }
end