module Rack::SimpleUserAgent::Detectors::Bot

Public Instance Methods

from_googlebot?() click to toggle source
# File lib/rack/simple_user_agent/detectors/bot.rb, line 7
def from_googlebot?
  user_agent_string.include?('Googlebot')
end
from_googlebot_images?() click to toggle source
# File lib/rack/simple_user_agent/detectors/bot.rb, line 15
def from_googlebot_images?
  user_agent_string.include?('Googlebot-Image')
end
from_googlebot_news?() click to toggle source
# File lib/rack/simple_user_agent/detectors/bot.rb, line 11
def from_googlebot_news?
  user_agent_string.include?('Googlebot-News')
end
from_googlebot_video?() click to toggle source
# File lib/rack/simple_user_agent/detectors/bot.rb, line 19
def from_googlebot_video?
  user_agent_string.include?('Googlebot-Video')
end