Siftsciex v0.3.1 Siftsciex.Event.Payload.Browser View Source

Represents a browser object in a Sift Event payload

Link to this section Summary

Functions

Create a new Browser record for a Sift Science Event

Link to this section Types

Link to this type data() View Source
data() :: %{user_agent: String.t()}
Link to this type t() View Source
t() :: %Siftsciex.Event.Payload.Browser{
  "$user_agent": Siftsciex.Event.Payload.payload_string()
}

Link to this section Functions

Create a new Browser record for a Sift Science Event

Parameters

  • browser_data: A map of information about the browser, currently the only supported key is :user_agent

Examples

iex> Browser.new(%{user_agent: "Firefox"})
%Browser{"$user_agent": "Firefox"}