lib/twitter/geo_factory.rb in twitter-5.0.0.rc.1 vs lib/twitter/geo_factory.rb in twitter-5.0.0
- old
+ new
@@ -3,16 +3,20 @@
require 'twitter/geo/polygon'
module Twitter
class GeoFactory < Twitter::Factory
- # Construct a new geo object
- #
- # @param attrs [Hash]
- # @raise [ArgumentError] Error raised when supplied argument is missing a :type key.
- # @return [Twitter::Geo]
- def self.new(attrs={})
- super(:type, Twitter::Geo, attrs)
+ 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={})
+ super(:type, Geo, attrs)
+ end
+
end
end
end