Class: Twitter::MediaFactory

Inherits:
Factory
  • Object
show all
Defined in:
lib/twitter/media_factory.rb

Class Method Summary collapse

Class Method Details

.new(attrs = {}) ⇒ Twitter::Media

Construct a new media object

Raises:

  • (IndexError)

    Error raised when supplied argument is missing a :type key.



12
13
14
# File 'lib/twitter/media_factory.rb', line 12

def new(attrs = {})
  super(:type, Media, attrs)
end