Module: DomainsScanner::Crawlers

Defined in:
lib/domains_scanner/crawlers.rb,
lib/domains_scanner/crawlers/base.rb,
lib/domains_scanner/crawlers/baidu.rb,
lib/domains_scanner/crawlers/google.rb

Defined Under Namespace

Classes: Baidu, Base, Google

Class Method Summary collapse

Class Method Details

.build(engine) ⇒ Object



8
9
10
11
12
13
14
15
# File 'lib/domains_scanner/crawlers.rb', line 8

def self.build(engine)
  case engine.to_s
  when "google"
    Google.new
  when "baidu"
    Baidu.new
  end
end