Class: TelegramBot::Document
- Inherits:
-
Struct
- Object
- Struct
- TelegramBot::Document
- Includes:
- AutoFromMethods
- Defined in:
- lib/telegram_bot/document.rb
Instance Attribute Summary collapse
-
#file_name ⇒ Object
Returns the value of attribute file_name.
-
#file_size ⇒ Object
Returns the value of attribute file_size.
-
#id ⇒ Object
Returns the value of attribute id.
-
#meme_type ⇒ Object
Returns the value of attribute meme_type.
-
#thumb ⇒ Object
Returns the value of attribute thumb.
Class Method Summary collapse
Methods included from AutoFromMethods
Instance Attribute Details
#file_name ⇒ Object
Returns the value of attribute file_name
3 4 5 |
# File 'lib/telegram_bot/document.rb', line 3 def file_name @file_name end |
#file_size ⇒ Object
Returns the value of attribute file_size
3 4 5 |
# File 'lib/telegram_bot/document.rb', line 3 def file_size @file_size end |
#id ⇒ Object
Returns the value of attribute id
3 4 5 |
# File 'lib/telegram_bot/document.rb', line 3 def id @id end |
#meme_type ⇒ Object
Returns the value of attribute meme_type
3 4 5 |
# File 'lib/telegram_bot/document.rb', line 3 def meme_type @meme_type end |
#thumb ⇒ Object
Returns the value of attribute thumb
3 4 5 |
# File 'lib/telegram_bot/document.rb', line 3 def thumb @thumb end |
Class Method Details
.extra_types ⇒ Object
13 14 15 16 17 |
# File 'lib/telegram_bot/document.rb', line 13 def self.extra_types { thumb: TelegramBot::PhotoSize } end |
.hash_key_aliases ⇒ Object
7 8 9 10 11 |
# File 'lib/telegram_bot/document.rb', line 7 def self.hash_key_aliases { :id => :file_id } end |