class Twitter::Media::Video

Attributes

indices[R]

@return [Array<Integer>]

Public Instance Methods

sizes() click to toggle source

Returns an array of photo sizes

@return [Array<Twitter::Size>]

# File lib/twitter/media/video.rb, line 18
def sizes
  @attrs.fetch(:sizes, []).inject({}) do |object, (key, value)|
    object[key] = Size.new(value)
    object
  end
end
video_info() click to toggle source

Returns video info

@return [Twitter::Media::VideoInfo]

# File lib/twitter/media/video.rb, line 29
def video_info
  VideoInfo.new(@attrs[:video_info]) unless @attrs[:video_info].nil?
end