Class: Telegram::Bot::Types::VideoNote
- Inherits:
-
Object
- Object
- Telegram::Bot::Types::VideoNote
- Defined in:
- lib/telegram/bot/types/video_note.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.
-
#length ⇒ Object
Returns the value of attribute length.
-
#thumb ⇒ Object
Returns the value of attribute thumb.
Instance Method Summary collapse
-
#initialize(attributes) ⇒ VideoNote
constructor
A new instance of VideoNote.
Constructor Details
#initialize(attributes) ⇒ VideoNote
Returns a new instance of VideoNote.
9 10 11 |
# File 'lib/telegram/bot/types/video_note.rb', line 9 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/video_note.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/video_note.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/video_note.rb', line 3 def file_size @file_size end |
#length ⇒ Object
Returns the value of attribute length.
3 4 5 |
# File 'lib/telegram/bot/types/video_note.rb', line 3 def length @length end |
#thumb ⇒ Object
Returns the value of attribute thumb.
3 4 5 |
# File 'lib/telegram/bot/types/video_note.rb', line 3 def thumb @thumb end |