Sha256: 07765d6015297ca635f18fa38f987a34ad083664ecbcac7b6fa613eeaa896008
Contents?: true
Size: 527 Bytes
Versions: 5
Compression:
Stored size: 527 Bytes
Contents
require 'memoizable' require 'twitter/variant' module Twitter module Media class VideoInfo < Twitter::Base include Memoizable # @return [Array<Integer] attr_reader :aspect_ratio # @return [Integer] attr_reader :duration_millis # Returns an array of video variants # # @return [Array<Twitter::Variant>] def variants @attrs.fetch(:variants, []).map do |variant| Variant.new(variant) end end memoize :variants end end end
Version data entries
5 entries across 5 versions & 1 rubygems