Sha256: 1cc28f04bfb98930d8d431608100574942fc9952335c027968466a08aac69133
Contents?: true
Size: 480 Bytes
Versions: 4
Compression:
Stored size: 480 Bytes
Contents
require "twitter/factory" require "twitter/media/animated_gif" require "twitter/media/photo" require "twitter/media/video" module Twitter class MediaFactory < Twitter::Factory class << self # Construct a new media object # # @param attrs [Hash] # @raise [IndexError] Error raised when supplied argument is missing a :type key. # @return [Twitter::Media] def new(attrs = {}) super(:type, Media, attrs) end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
twitter-8.1.0 | lib/twitter/media_factory.rb |
twitter-8.0.1 | lib/twitter/media_factory.rb |
twitter-8.0.0 | lib/twitter/media_factory.rb |
twitter-8.0.0.rc.1 | lib/twitter/media_factory.rb |