Class: Legitbot::Baidu
Overview
Constant Summary collapse
- ValidDomains =
["baidu.com.", "baidu.jp."]
Instance Method Summary collapse
Methods inherited from BotMatch
#detected_as, #fake?, fake?, #initialize, #reverse_domain, #reverse_name, #reverse_resolves?, #reversed_ip, #subdomain_of?, valid?
Constructor Details
This class inherits a constructor from Legitbot::BotMatch
Instance Method Details
#valid? ⇒ Boolean
6 7 8 |
# File 'lib/legitbot/baidu.rb', line 6 def valid? subdomain_of?(*Baidu::ValidDomains) end |