class Animation

Sunday, August 23 2020

This object represents an animation file.

(GIF or H.264/MPEG-4 AVC video without sound).

Public Instance Methods

duration() click to toggle source

Duration of the video in seconds as defined by sender.

# File lib/objects/animation.rb, line 18
def duration
  @obj.duration
end
file_name() click to toggle source

Optional. Original animation filename as defined by sender.

# File lib/objects/animation.rb, line 23
def file_name
  @obj.file_name
end
mime_type() click to toggle source

Optional. MIME type of the file as defined by sender.

# File lib/objects/animation.rb, line 28
def mime_type
  @obj.mime_type
end
thumb() click to toggle source
# File lib/objects/animation.rb, line 32
def thumb
  data = @obj.thumb
  return PhotoSize.new(data) if data

  false
end