File: geo_factory.rb

package info (click to toggle)
ruby-twitter 7.0.0-3
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 4,856 kB
  • sloc: ruby: 10,919; makefile: 6
file content (18 lines) | stat: -rw-r--r-- 433 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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