Module: UserAgentParser

Defined in:
lib/user_agent_parser.rb,
lib/user_agent_parser/cli.rb,
lib/user_agent_parser/device.rb,
lib/user_agent_parser/parser.rb,
lib/user_agent_parser/version.rb,
lib/user_agent_parser/user_agent.rb,
lib/user_agent_parser/operating_system.rb

Defined Under Namespace

Classes: Cli, Device, OperatingSystem, Parser, UserAgent, Version

Constant Summary collapse

DefaultPatternsPath =
File.join(File.dirname(__FILE__), '../vendor/uap-core/regexes.yaml')

Class Method Summary collapse

Class Method Details

.parse(user_agent_string, **args) ⇒ Object

Parse the given user_agent_string, returning a UserAgent



13
14
15
# File 'lib/user_agent_parser.rb', line 13

def self.parse(user_agent_string, **args)
  Parser.new(**args).parse(user_agent_string)
end