class Video

This object represents a video file.

Extends Common2 class.

Public Instance Methods

duration() click to toggle source

Duration of the video in seconds as defined by sender.

# File lib/objects/video.rb, line 26
def duration
  @obj.duration
end
heigth() click to toggle source

Video height as defined by sender.

# File lib/objects/video.rb, line 21
def heigth
  @obj.heigth
end
thumb() click to toggle source

Optional. Video thumbnail.

# File lib/objects/video.rb, line 31
def thumb
  data = @obj.thumb
  return false unless data

  PhotoSize.new(data)
end
width() click to toggle source

Video width as defined by sender.

# File lib/objects/video.rb, line 16
def width
  @obj.width
end