Class: Animation
Overview
Sunday
, August
23
2020
This object represents an animation file.
(GIF or H.264/MPEG-4 AVC video without sound).
Instance Method Summary collapse
-
#duration ⇒ Object
Duration of the video in seconds as defined by sender.
-
#file_name ⇒ Object
Optional
. -
#initialize(obj) ⇒ Animation
constructor
:nodoc:.
-
#mime_type ⇒ Object
Optional.
MIME type of the file as defined by sender. - #thumb ⇒ Object
Methods inherited from Common
#file_id, #file_size, #file_unique_id, #heigth, #width
Constructor Details
#initialize(obj) ⇒ Animation
:nodoc:
12 13 14 15 |
# File 'lib/objects/animation.rb', line 12 def initialize(obj) # :nodoc: super(obj) freeze end |
Instance Method Details
#duration ⇒ Object
Duration of the video in seconds as defined by sender.
18 19 20 |
# File 'lib/objects/animation.rb', line 18 def duration @obj.duration end |
#file_name ⇒ Object
Optional
. Original animation filename as defined by sender.
23 24 25 |
# File 'lib/objects/animation.rb', line 23 def file_name @obj.file_name end |
#mime_type ⇒ Object
Optional.
MIME type of the file as defined by sender.
28 29 30 |
# File 'lib/objects/animation.rb', line 28 def mime_type @obj.mime_type end |