Sha256: 1f1cf80bdac77ea27679600f2b129c959531459544d14dd68bb45a6615144e16

Contents?: true

Size: 433 Bytes

Versions: 24

Compression:

Stored size: 433 Bytes

Contents

require 'twitter/factory'
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 = {})
        super(:type, Geo, attrs)
      end
    end
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
twitter-7.0.0 lib/twitter/geo_factory.rb
twitter-6.2.0 lib/twitter/geo_factory.rb
twitter-6.1.0 lib/twitter/geo_factory.rb
twitter-6.0.0 lib/twitter/geo_factory.rb
twitter-5.17.0 lib/twitter/geo_factory.rb
twitter-5.16.0 lib/twitter/geo_factory.rb
twitter-5.15.0 lib/twitter/geo_factory.rb
twitter-5.14.0 lib/twitter/geo_factory.rb
twitter-5.13.0 lib/twitter/geo_factory.rb
twitter-5.12.0 lib/twitter/geo_factory.rb
twitter-5.11.0 lib/twitter/geo_factory.rb
twitter-5.10.0 lib/twitter/geo_factory.rb
twitter-5.9.0 lib/twitter/geo_factory.rb
twitter-5.8.0 lib/twitter/geo_factory.rb
twitter-5.7.1 lib/twitter/geo_factory.rb
twitter-5.7.0 lib/twitter/geo_factory.rb
twitter-5.6.0 lib/twitter/geo_factory.rb
twitter-5.5.1 lib/twitter/geo_factory.rb
twitter-5.5.0 lib/twitter/geo_factory.rb
twitter-5.4.1 lib/twitter/geo_factory.rb