Class: Telegram::Bot::Types::Audio
- Inherits:
-
Object
- Object
- Telegram::Bot::Types::Audio
- Defined in:
- lib/telegram/bot/types/audio.rb
Instance Attribute Summary collapse
-
#duration ⇒ Object
Returns the value of attribute duration.
-
#file_id ⇒ Object
Returns the value of attribute file_id.
-
#file_size ⇒ Object
Returns the value of attribute file_size.
-
#mime_type ⇒ Object
Returns the value of attribute mime_type.
-
#performer ⇒ Object
Returns the value of attribute performer.
-
#title ⇒ Object
Returns the value of attribute title.
Instance Method Summary collapse
-
#initialize(attributes) ⇒ Audio
constructor
A new instance of Audio.
Constructor Details
#initialize(attributes) ⇒ Audio
Returns a new instance of Audio.
10 11 12 |
# File 'lib/telegram/bot/types/audio.rb', line 10 def initialize(attributes) attributes.each { |k, v| self.send("#{k}=", v) if self.respond_to? k } end |
Instance Attribute Details
#duration ⇒ Object
Returns the value of attribute duration.
3 4 5 |
# File 'lib/telegram/bot/types/audio.rb', line 3 def duration @duration end |
#file_id ⇒ Object
Returns the value of attribute file_id.
3 4 5 |
# File 'lib/telegram/bot/types/audio.rb', line 3 def file_id @file_id end |
#file_size ⇒ Object
Returns the value of attribute file_size.
3 4 5 |
# File 'lib/telegram/bot/types/audio.rb', line 3 def file_size @file_size end |
#mime_type ⇒ Object
Returns the value of attribute mime_type.
3 4 5 |
# File 'lib/telegram/bot/types/audio.rb', line 3 def mime_type @mime_type end |
#performer ⇒ Object
Returns the value of attribute performer.
3 4 5 |
# File 'lib/telegram/bot/types/audio.rb', line 3 def performer @performer end |
#title ⇒ Object
Returns the value of attribute title.
3 4 5 |
# File 'lib/telegram/bot/types/audio.rb', line 3 def title @title end |