UAParser.Device (ua_parser v1.9.1) View Source

Device struct and helper methods.

Link to this section Summary

Functions

Examples

iex> device = %UAParser.Device{family: "iPhone"}
iex> to_string(device)
"iPhone"

iex> device = %UAParser.Device{}
iex> to_string(device)
"Other"

Link to this section Types

Specs

t() :: %UAParser.Device{
  brand: String.t(),
  family: String.t(),
  model: String.t()
}

Link to this section Functions

Link to this function

%UAParser.Device{}

View Source (struct)

Examples

iex> device = %UAParser.Device{family: "iPhone"}
iex> to_string(device)
"iPhone"

iex> device = %UAParser.Device{}
iex> to_string(device)
"Other"