Class: Twitter::GeoFactory

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

Class Method Summary collapse

Class Method Details

.fetch_or_new(attrs = {}) ⇒ Twitter::Geo

Instantiates a new geo object

Parameters:

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

Returns:

Raises:

  • (ArgumentError)

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



13
14
15
# File 'lib/twitter/geo_factory.rb', line 13

def self.fetch_or_new(attrs={})
  super(:type, Twitter::Geo, attrs)
end