Sha256: d5f2467b983d1d507d50acd22ed3979a7e5e516744de349705434f3958330bce
Contents?: true
Size: 415 Bytes
Versions: 4
Compression:
Stored size: 415 Bytes
Contents
require 'twitter/factory' require 'twitter/media/photo' 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-5.1.1 | lib/twitter/media_factory.rb |
twitter-5.1.0 | lib/twitter/media_factory.rb |
twitter-5.0.1 | lib/twitter/media_factory.rb |
twitter-5.0.0 | lib/twitter/media_factory.rb |