Sha256: 142a2db652157e3919e90e2ee5872370b407b106dc9493644a2101883bf76386

Contents?: true

Size: 284 Bytes

Versions: 2

Compression:

Stored size: 284 Bytes

Contents

module Mongoid
  module Geospatial
    class LineString

      include Mongoid::Fields::Serializable

      def deserialize(object)
        RGeo::Geographic.spherical_factory.line_string *object
      end

      def serialize(object)
        object.to_a
      end


    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
mongoid_geospatial-1.0.0rc1 lib/mongoid_geospatial/fields/line_string.rb
mongoid_geospatial-1.0.0rc0 lib/mongoid_geospatial/fields/line_string.rb