class UserAgent
- UserAgent
- Reference
- Object
Defined in:
user_agent_parser.crConstructors
-
.new(user_agent_string : String)
Parse user_agent_string using the Browserscope pattern library.
Class Method Summary
-
.load_regexes(regexes_yaml)
Load Browserscope pattern library from String.
Instance Method Summary
- #device : Device | Nil
- #family : String | Nil
- #os : Os | Nil
- #user_agent : String
- #version : SemanticVersion | Nil
Constructor Detail
def self.new(user_agent_string : String)
#
Parse user_agent_string using the Browserscope pattern library.