Sha256: 11d6723dbed9ffc60561a8cc77e111a4a0f1bede297e2f13e72153094575b545

Contents?: true

Size: 292 Bytes

Versions: 6

Compression:

Stored size: 292 Bytes

Contents

# encoding: UTF-8
module MarkMapper
  module Extensions
    module ObjectId
      def to_marklogic(value)
        MarkMapper.to_object_id(value)
      end

      def from_marklogic(value)
        value
      end
    end
  end
end

class ObjectId
  extend MarkMapper::Extensions::ObjectId
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
mark_mapper-0.0.6 lib/mark_mapper/extensions/object_id.rb
mark_mapper-0.0.5 lib/mark_mapper/extensions/object_id.rb
mark_mapper-0.0.4 lib/mark_mapper/extensions/object_id.rb
mark_mapper-0.0.3 lib/mark_mapper/extensions/object_id.rb
mark_mapper-0.0.2 lib/mark_mapper/extensions/object_id.rb
mark_mapper-0.0.1 lib/mark_mapper/extensions/object_id.rb