ua_parser v1.7.0 UAParser.UA
User Agent struct and helper methods.
Link to this section Summary
Functions
Display the UA as a string
Link to this section Functions
Link to this function
%UAParser.UA{} (struct)
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"