View Source UAParser.Version (ua_parser v1.9.2)
A module representing user agent version struct and helper methods.
Summary
Functions
Examples
iex> version = %UAParser.Version{major: "1", minor: "2", patch: "3", patch_minor: "4"}
iex> to_string(version)
"1.2.3.4"
iex> version = %UAParser.Version{major: "1", minor: "2", patch: "3"}
iex> to_string(version)
"1.2.3"
iex> version = %UAParser.Version{major: "1", minor: "2"}
iex> to_string(version)
"1.2"
iex> version = %UAParser.Version{major: "1"}
iex> to_string(version)
"1"
Types
Functions
Examples
iex> version = %UAParser.Version{major: "1", minor: "2", patch: "3", patch_minor: "4"}
iex> to_string(version)
"1.2.3.4"
iex> version = %UAParser.Version{major: "1", minor: "2", patch: "3"}
iex> to_string(version)
"1.2.3"
iex> version = %UAParser.Version{major: "1", minor: "2"}
iex> to_string(version)
"1.2"
iex> version = %UAParser.Version{major: "1"}
iex> to_string(version)
"1"