Class: Twitter::GeoFactory

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

Class Method Summary collapse

Class Method Details

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

Construct a new geo object

Parameters:

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

Returns:

Raises:

  • (IndexError)

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



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

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