Sha256: 553ce8c65159d1ac102c05d8313564de79b7e52630d4a3e879cc3b4cb165cd99

Contents?: true

Size: 237 Bytes

Versions: 1

Compression:

Stored size: 237 Bytes

Contents

module RGeo
  module Geographic
    # RGeo Point
    class SphericalPointImpl

      def mongoize
        [x, y]
      end

      def to_a
        [x, y, z]
      end

      def [](index)
        to_a[index]
      end

    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mongoid_geospatial-3.0.0 lib/mongoid_geospatial/extensions/rgeo_spherical_point_impl.rb