Sha256: 62801555278bbad2d5ebd0369370ef2d7b325bdd56ab5099b8c871fcbcb631b9
Contents?: true
Size: 795 Bytes
Versions: 1
Compression:
Stored size: 795 Bytes
Contents
require 'twitter/identity' require 'twitter/media/video_info' module Twitter module Media class Video < Twitter::Identity # @return [Array<Integer>] attr_reader :indices display_uri_attr_reader uri_attr_reader :expanded_uri, :media_uri, :media_uri_https, :uri # Returns an array of photo sizes # # @return [Array<Twitter::Size>] def sizes @attrs.fetch(:sizes, []).inject({}) do |object, (key, value)| object[key] = Size.new(value) object end end memoize :sizes # Returns video info # # @return [Twitter::Media::VideoInfo] def video_info VideoInfo.new(@attrs[:video_info]) unless @attrs[:video_info].nil? end memoize :video_info end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
twitter-5.14.0 | lib/twitter/media/video.rb |