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