lib/mongo/cluster/topology/replica_set.rb in mongo-2.0.2 vs lib/mongo/cluster/topology/replica_set.rb in mongo-2.0.3
- old
+ new
@@ -80,11 +80,11 @@
# ReplicaSet.new(options)
#
# @param [ Hash ] options The options.
#
# @since 2.0.0
- def initialize(options)
+ def initialize(options, seeds = [])
@options = options
end
# A replica set topology is a replica set.
#
@@ -133,18 +133,18 @@
# @return [ false ] Always false.
#
# @since 2.0.0
def sharded?; false; end
- # A replica set topology is not standalone.
+ # A replica set topology is not single.
#
- # @example Is the topology standalone?
- # ReplicaSet.standalone?
+ # @example Is the topology single?
+ # ReplicaSet.single?
#
# @return [ false ] Always false.
#
# @since 2.0.0
- def standalone?; false; end
+ def single?; false; end
# A replica set topology is not unknown.
#
# @example Is the topology unknown?
# ReplicaSet.unknown?