View Source UAParser.Device (ua_parser v1.9.2)

Device struct and helper methods.

Summary

Functions

Examples

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

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

Types

t()

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

Functions

%UAParser.Device{}

(struct)

Examples

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

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