Module: Legitbot::Config::Resolver

Included in:
Validators::Domains::ClassMethods
Defined in:
lib/legitbot/config/resolver.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#resolverObject



12
13
14
15
# File 'lib/legitbot/config/resolver.rb', line 12

def resolver
  @resolver_config ||= Legitbot.resolver_config
  @resolver ||= Resolv::DNS.new @resolver_config
end

#resolver_config(options = nil) ⇒ Object



8
9
10
# File 'lib/legitbot/config/resolver.rb', line 8

def resolver_config(options = nil)
  @resolver_config = options
end