Class: Video
- Inherits:
-
Object
- Object
- Video
- Defined in:
- lib/telegramObjects.rb
Instance Attribute Summary collapse
-
#caption ⇒ Object
Returns the value of attribute caption.
-
#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(json) ⇒ Video
constructor
A new instance of Video.
Constructor Details
#initialize(json) ⇒ Video
Returns a new instance of Video.
130 131 132 133 134 135 136 137 138 139 140 |
# File 'lib/telegramObjects.rb', line 130 def initialize json return if !json @file_id = json["file_id"] @width = json["width"] @height = json["height"] @duration = json["duration"] @thumb = PhotoSize.new json["thumb"] @mime_type = json["mime_type"] @file_size = json["file_size"] @caption = json["caption"] end |
Instance Attribute Details
#caption ⇒ Object
Returns the value of attribute caption.
129 130 131 |
# File 'lib/telegramObjects.rb', line 129 def caption @caption end |
#duration ⇒ Object
Returns the value of attribute duration.
129 130 131 |
# File 'lib/telegramObjects.rb', line 129 def duration @duration end |
#file_id ⇒ Object
Returns the value of attribute file_id.
129 130 131 |
# File 'lib/telegramObjects.rb', line 129 def file_id @file_id end |
#file_size ⇒ Object
Returns the value of attribute file_size.
129 130 131 |
# File 'lib/telegramObjects.rb', line 129 def file_size @file_size end |
#height ⇒ Object
Returns the value of attribute height.
129 130 131 |
# File 'lib/telegramObjects.rb', line 129 def height @height end |
#mime_type ⇒ Object
Returns the value of attribute mime_type.
129 130 131 |
# File 'lib/telegramObjects.rb', line 129 def mime_type @mime_type end |
#thumb ⇒ Object
Returns the value of attribute thumb.
129 130 131 |
# File 'lib/telegramObjects.rb', line 129 def thumb @thumb end |
#width ⇒ Object
Returns the value of attribute width.
129 130 131 |
# File 'lib/telegramObjects.rb', line 129 def width @width end |