Module: Mongo::Cluster::Topology::NoReplicaSetOptions
| Relationships & Source Files | |
| Extension / Inclusion / Inheritance Descendants | |
|
Included In:
| |
| Defined in: | lib/mongo/cluster/topology/no_replica_set_options.rb |
Overview
Instance Method Summary
Instance Method Details
#validate_options(options, cluster) (private)
# File 'lib/mongo/cluster/topology/no_replica_set_options.rb', line 23
def (, cluster) # These options can be set to nil for convenience, but not to # any value including an empty string. %i[replica_set_name max_election_id max_set_version].each do |option| raise ArgumentError, "Topology #{self.class.name} cannot have the :#{option} option set" if [option] end super end