Methods

Class/Module Index [+]

Quicksearch

Twitter::MediaFactory

Public Class Methods

fetch_or_new(attrs={}) click to toggle source

Instantiates a new media object

@param attrs [Hash] @raise [ArgumentError] Error raised when supplied argument is missing a :type key. @return [Twitter::Media]

# File lib/twitter/media_factory.rb, line 12
def self.fetch_or_new(attrs={})
  super(:type, Twitter::Media, attrs)
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.