lib/twitter/geo_factory.rb in twitter-4.8.1 vs lib/twitter/geo_factory.rb in twitter-5.0.0.rc.1
- old
+ new
@@ -3,15 +3,15 @@
require 'twitter/geo/polygon'
module Twitter
class GeoFactory < Twitter::Factory
- # Instantiates a new geo object
+ # 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.fetch_or_new(attrs={})
+ def self.new(attrs={})
super(:type, Twitter::Geo, attrs)
end
end
end