Sha256: 682bfe115d515057661b9a95435231d32a6291ecb6729d7ad7fc4a9e50415c7d

Contents?: true

Size: 413 Bytes

Versions: 16

Compression:

Stored size: 413 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

16 entries across 16 versions & 1 rubygems

Version Path
twitter-5.13.0 lib/twitter/media_factory.rb
twitter-5.12.0 lib/twitter/media_factory.rb
twitter-5.11.0 lib/twitter/media_factory.rb
twitter-5.10.0 lib/twitter/media_factory.rb
twitter-5.9.0 lib/twitter/media_factory.rb
twitter-5.8.0 lib/twitter/media_factory.rb
twitter-5.7.1 lib/twitter/media_factory.rb
twitter-5.7.0 lib/twitter/media_factory.rb
twitter-5.6.0 lib/twitter/media_factory.rb
twitter-5.5.1 lib/twitter/media_factory.rb
twitter-5.5.0 lib/twitter/media_factory.rb
twitter-5.4.1 lib/twitter/media_factory.rb
twitter-5.4.0 lib/twitter/media_factory.rb
twitter-5.3.1 lib/twitter/media_factory.rb
twitter-5.3.0 lib/twitter/media_factory.rb
twitter-5.2.0 lib/twitter/media_factory.rb