Class: Audio
- Inherits:
-
Object
- Object
- Audio
- Defined in:
- lib/telegramObjects.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.
Instance Method Summary collapse
-
#initialize(json) ⇒ Audio
constructor
A new instance of Audio.
Constructor Details
#initialize(json) ⇒ Audio
Returns a new instance of Audio.
95 96 97 98 99 100 101 |
# File 'lib/telegramObjects.rb', line 95 def initialize json return if !json @file_id = json["file_id"] @duration = json["duration"] @mime_type = json["mime_type"] @file_size = json["file_size"] end |
Instance Attribute Details
#duration ⇒ Object
Returns the value of attribute duration.
94 95 96 |
# File 'lib/telegramObjects.rb', line 94 def duration @duration end |
#file_id ⇒ Object
Returns the value of attribute file_id.
94 95 96 |
# File 'lib/telegramObjects.rb', line 94 def file_id @file_id end |
#file_size ⇒ Object
Returns the value of attribute file_size.
94 95 96 |
# File 'lib/telegramObjects.rb', line 94 def file_size @file_size end |
#mime_type ⇒ Object
Returns the value of attribute mime_type.
94 95 96 |
# File 'lib/telegramObjects.rb', line 94 def mime_type @mime_type end |