lib/mongo/operation/shared/specifiable.rb in mongo-2.6.4 vs lib/mongo/operation/shared/specifiable.rb in mongo-2.7.0.rc0
- old
+ new
@@ -1,6 +1,6 @@
-# Copyright (C) 2014-2018 MongoDB, Inc.
+# Copyright (C) 2014-2019 MongoDB, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
@@ -340,15 +340,17 @@
# @since 2.0.0
def options(server = nil)
spec[OPTIONS] || {}
end
- # Get the read concern from the spec.
+ # Get the read concern document from the spec.
#
+ # @note The document may include afterClusterTime.
+ #
# @example Get the read concern.
# specifiable.read_concern
#
- # @return [ Hash ] The read concern.
+ # @return [ Hash ] The read concern document.
#
# @since 2.2.0
def read_concern
spec[READ_CONCERN]
end