mongoid/moped

View on GitHub
lib/moped/write_concern/unverified.rb

Summary

Maintainability
A
0 mins
Test Coverage
# encoding: utf-8
module Moped
  module WriteConcern

    # Unverified write concerns are fire and forget.
    #
    # @since 2.0.0
    class Unverified

      # Constant for a noop getlasterror command.
      #
      # @since 2.0.0
      NOOP = nil

      # Get the gle command associated with this write concern.
      #
      # @example Get the gle operation.
      #   unverified.operation
      #
      # @return [ nil ] nil, since unverified writes perform no gle.
      #
      # @since 2.0.0
      def operation
        NOOP
      end
    end
  end
end