require 'twitter/variant' module Twitter module Media class VideoInfo < Twitter::Base # @return [Array] def variants @attrs.fetch(:variants, []).map do |variant| Variant.new(variant) end end memoize :variants end end end