Method: Mongo::Srv::Resolver#initialize
- Defined in:
- lib/mongo/srv/resolver.rb
#initialize(**opts) ⇒ Resolver
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Creates a new Resolver.
51 52 53 54 55 |
# File 'lib/mongo/srv/resolver.rb', line 51 def initialize(**opts) @options = opts.freeze @resolver = Resolv::DNS.new(@options[:resolv_options]) @resolver.timeouts = timeout end |