Class: TelegramBot::Audio
- Inherits:
-
Struct
- Object
- Struct
- TelegramBot::Audio
- Includes:
- AutoFromMethods
- Defined in:
- lib/telegram_bot/audio.rb
Instance Attribute Summary collapse
-
#duration ⇒ Object
Returns the value of attribute duration.
-
#file_size ⇒ Object
Returns the value of attribute file_size.
-
#id ⇒ Object
Returns the value of attribute id.
-
#mime_type ⇒ Object
Returns the value of attribute mime_type.
Class Method Summary collapse
Methods included from AutoFromMethods
Instance Attribute Details
#duration ⇒ Object
Returns the value of attribute duration
3 4 5 |
# File 'lib/telegram_bot/audio.rb', line 3 def duration @duration end |
#file_size ⇒ Object
Returns the value of attribute file_size
3 4 5 |
# File 'lib/telegram_bot/audio.rb', line 3 def file_size @file_size end |
#id ⇒ Object
Returns the value of attribute id
3 4 5 |
# File 'lib/telegram_bot/audio.rb', line 3 def id @id end |
#mime_type ⇒ Object
Returns the value of attribute mime_type
3 4 5 |
# File 'lib/telegram_bot/audio.rb', line 3 def mime_type @mime_type end |
Class Method Details
.hash_key_aliases ⇒ Object
7 8 9 10 11 |
# File 'lib/telegram_bot/audio.rb', line 7 def self.hash_key_aliases { :id => :file_id } end |