def get(options)
      return options if options.is_a?(Unacknowledged) || options.is_a?(Acknowledged)
      if options
        validate!(options)
        if unacknowledged?(options)
          Unacknowledged.new(options)
        else
          Acknowledged.new(options)
        end
      end
    end
def get(options)
      return options if options.is_a?(Unacknowledged) || options.is_a?(Acknowledged)
      if options
        validate!(options)
        if unacknowledged?(options)
          Unacknowledged.new(options)
        else
          Acknowledged.new(options)
        end
      end
    end
Create a write concern object for the provided options.

 @example Get a write concern.
   Mongo::WriteConcern.get(:w => 1)

 @param [ Hash ] options The options to instantiate with.

 @option options :w [ Integer, String ] The number of servers or the
   custom mode to acknowledge.
 @option options :j [ true, false ] Whether to acknowledge a write to
   the journal.
 @option options :fsync [ true, false ] Should the write be synced to
   disc.
 @option options :wtimeout [ Integer ] The number of milliseconds to
   wait for acknowledgement before raising an error.

 @return [ Unacknowledged, Acknowledged ] The appropriate concern.

 @raise [ Error::InvalidWriteConcern ] If the options are invalid.

 @since 2.0.0