class UserAgent

Defined in:

user_agent_parser.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(user_agent_string : String) #

Parse user_agent_string using the Browserscope pattern library.


[View source]

Class Method Detail

def self.load_regexes(regexes_yaml) #

Load Browserscope pattern library from String.


[View source]

Instance Method Detail

def device : Device | Nil #

[View source]
def family : String | Nil #

[View source]
def os : Os | Nil #

[View source]
def user_agent : String #

[View source]
def version : SemanticVersion | Nil #

[View source]