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
t()
View Source
t() :: %Siftsciex.Event.Payload.Browser{ "$user_agent": Siftsciex.Event.Payload.payload_string() }
Link to this section Functions
Link to this function
new(browser_data)
View Source
new(data()) :: Siftsciex.Event.Payload.Browser.t()
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"}