lib/twitter/geo_factory.rb in twitter-5.1.1 vs lib/twitter/geo_factory.rb in twitter-5.2.0
- old
+ new
@@ -2,21 +2,17 @@
require 'twitter/geo/point'
require 'twitter/geo/polygon'
module Twitter
class GeoFactory < Twitter::Factory
-
class << self
-
# Construct a new geo object
#
# @param attrs [Hash]
# @raise [IndexError] Error raised when supplied argument is missing a :type key.
# @return [Twitter::Geo]
- def new(attrs={})
+ def new(attrs = {})
super(:type, Geo, attrs)
end
-
end
-
end
end