Sha256: 4f4d677203f16793658416bf4756df255a48b9172d16d3ef459b33f3a531da30

Contents?: true

Size: 335 Bytes

Versions: 6

Compression:

Stored size: 335 Bytes

Contents

require 'twitter/geo'

module Twitter
  class Geo
    class Point < Twitter::Geo
      # @return [Integer]
      def latitude
        coordinates[0]
      end
      alias lat latitude

      # @return [Integer]
      def longitude
        coordinates[1]
      end
      alias long longitude
      alias lng longitude
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
twitter-7.0.0 lib/twitter/geo/point.rb
twitter-6.2.0 lib/twitter/geo/point.rb
twitter-6.1.0 lib/twitter/geo/point.rb
twitter-6.0.0 lib/twitter/geo/point.rb
twitter-5.17.0 lib/twitter/geo/point.rb
twitter-5.16.0 lib/twitter/geo/point.rb