class Twitter::Media::Video
Attributes
indices[R]
@return [Array<Integer>]
type[R]
@return [String]
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 22 def sizes @attrs.fetch(:sizes, []).each_with_object({}) do |(key, value), object| object[key] = Size.new(value) end end
video_info()
click to toggle source
Returns video info
@return [Twitter::Media::VideoInfo]
# File lib/twitter/media/video.rb, line 32 def video_info VideoInfo.new(@attrs[:video_info]) unless @attrs[:video_info].nil? end