View Source UAParser.UA (ua_parser v1.9.2)
User Agent struct and helper methods.
Summary
Functions
Display the UA as a string.
Types
Functions
Display the UA as a string.
Examples
iex> version = %UAParser.Version{major: "1", minor: "2", patch: "3", patch_minor: "4"}
iex> agent = %UAParser.UA{family: "Family", version: version}
iex> to_string(agent)
"Family 1.2.3.4"
iex> agent = %UAParser.UA{family: "Family"}
iex> to_string(agent)
"Family"
iex> agent = %UAParser.UA{}
iex> to_string(agent)
"Other"