Class: Legitbot::Pinterest
- Defined in:
- lib/legitbot/pinterest.rb
Overview
Constant Summary collapse
- ValidDomains =
["pinterest.com."]
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
7 8 9 |
# File 'lib/legitbot/pinterest.rb', line 7 def valid? subdomain_of?(*Pinterest::ValidDomains) && reverse_resolves? end |