NAME

WebService::Raygun::Message::User - Represent the User data in a raygun request.

SYNOPSIS

my $user = WebService::Raygun::User->new(
identifier => "123456",
email => 'test@test.com',
is_anonymous => undef,
full_name => 'Firstname Lastname',
first_name => 'Firstname',
uuid => '783491e1-d4a9-46bc-9fde-9b1dd9ef6c6e'
);

DESCRIPTION

The user data is all optional and may be left blank. This class just initialises them with empty strings or 1s or 0s depending on the context. The prepare_raygun method may be called to retreive the structure in a form that can be converted directly to JSON.

INTERFACE

identifier

Something to identify the user.

email

Email address of logged in user.

is_anonymous

Indicates whether or not the user is logged into your app.

full_name

User's full name.

first_name

User's first name.

uuid

Device unique identifier. Useful if sending from mobile device.

prepare_raygun

Return the data structure that will be sent to raygun.io

DEPENDENCIES

SEE ALSO