Class: DeviceDetector::Bot

Inherits:
Parser
  • Object
show all
Defined in:
lib/device_detector/bot.rb

Constant Summary

Constants inherited from Parser

Parser::ROOT

Instance Attribute Summary

Attributes inherited from Parser

#user_agent

Instance Method Summary collapse

Methods inherited from Parser

#full_version, #initialize, #name

Constructor Details

This class inherits a constructor from DeviceDetector::Parser

Instance Method Details

#bot?Boolean

Returns:

  • (Boolean)


5
6
7
# File 'lib/device_detector/bot.rb', line 5

def bot?
  regex_meta.any?
end