Sha256: 198d363d37460b31713c065ea5a8e436a2e08c51da3d9589d09e09764fd6b683

Contents?: true

Size: 420 Bytes

Versions: 18

Compression:

Stored size: 420 Bytes

Contents

require 'twitter/factory'
require 'twitter/geo/point'
require 'twitter/geo/polygon'

module Twitter
  class GeoFactory < Twitter::Factory

    # Instantiates 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={})
      super(:type, Twitter::Geo, attrs)
    end

  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
twitter-4.8.1 lib/twitter/geo_factory.rb
twitter-4.8.0 lib/twitter/geo_factory.rb
twitter-4.7.0 lib/twitter/geo_factory.rb
twitter-4.6.2 lib/twitter/geo_factory.rb
twitter-4.6.1 lib/twitter/geo_factory.rb
twitter-4.6.0 lib/twitter/geo_factory.rb
twitter-4.5.0 lib/twitter/geo_factory.rb
twitter-4.4.4 lib/twitter/geo_factory.rb
twitter-4.4.3 lib/twitter/geo_factory.rb
twitter-4.4.2 lib/twitter/geo_factory.rb
twitter-4.4.1 lib/twitter/geo_factory.rb
twitter-4.4.0 lib/twitter/geo_factory.rb
twitter-4.3.0 lib/twitter/geo_factory.rb
twitter-4.2.0 lib/twitter/geo_factory.rb
twitter-4.1.2 lib/twitter/geo_factory.rb
twitter-4.1.1 lib/twitter/geo_factory.rb
twitter-4.1.0 lib/twitter/geo_factory.rb
twitter-4.0.0 lib/twitter/geo_factory.rb