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

Parameters:

  • attrs (Hash) (defaults to: {})

Returns:

Raises:

  • (IndexError)

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



14
15
16
# File 'lib/twitter/media_factory.rb', line 14

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