Class: LWS::Presence::Person

Inherits:
Generic::Model show all
Defined in:
lib/lws/presence.rb

Overview

The person class

Instance Attribute Summary collapse

Instance Attribute Details

#companyAuth::Company

Returns the company the person belongs to.

Returns:



104
# File 'lib/lws/presence.rb', line 104

belongs_to :company, class_name: "LWS::Auth::Company"

#company_idFixnum

Returns the ID of the company the person belongs to.

Returns:

  • (Fixnum)

    the ID of the company the person belongs to



# File 'lib/lws/presence.rb', line 106

#created_atString

Returns the timestamp of when the person was created.

Returns:

  • (String)

    the timestamp of when the person was created



# File 'lib/lws/presence.rb', line 143

#customer_referenceString

Returns customer specific reference for the person.

Returns:

  • (String)

    customer specific reference for the person



# File 'lib/lws/presence.rb', line 129

#eroBoolean

Returns flag whether the person is emergency response certified.

Returns:

  • (Boolean)

    flag whether the person is emergency response certified



# File 'lib/lws/presence.rb', line 132

#extra_infoString

Returns some extra info for the person.

Returns:

  • (String)

    some extra info for the person



# File 'lib/lws/presence.rb', line 126

#idFixnum (readonly)

Returns the (unique) ID of the person.

Returns:

  • (Fixnum)

    the (unique) ID of the person



# File 'lib/lws/presence.rb', line 89

#last_syncString

Returns last time the status was updated via a device or RFID tag.

Returns:

  • (String)

    last time the status was updated via a device or RFID tag



# File 'lib/lws/presence.rb', line 139

#latFloat

Returns the exact latitude of the person’s location.

Returns:

  • (Float)

    the exact latitude of the person’s location



# File 'lib/lws/presence.rb', line 109

#locationLocation

Returns the location the person is located at.

Returns:

  • (Location)

    the location the person is located at



121
# File 'lib/lws/presence.rb', line 121

belongs_to :location

#location_idFixnum

Returns the ID of the location the person is located at.

Returns:

  • (Fixnum)

    the ID of the location the person is located at



# File 'lib/lws/presence.rb', line 123

#longFloat

Returns the exact longitude of the person’s location.

Returns:

  • (Float)

    the exact longitude of the person’s location



# File 'lib/lws/presence.rb', line 112

#nameString

Returns the name of the person.

Returns:

  • (String)

    the name of the person



# File 'lib/lws/presence.rb', line 92

#picture_urlString

Returns an URL of the picture of the person.

Returns:

  • (String)

    an URL of the picture of the person



# File 'lib/lws/presence.rb', line 136

#rfidString

Returns the RFID tag ID linked to the person.

Returns:

  • (String)

    the RFID tag ID linked to the person



# File 'lib/lws/presence.rb', line 99

#status"available", ...

Returns the presence status of the person.

Returns:

  • ("available", "busy", "away", "disabled")

    the presence status of the person



# File 'lib/lws/presence.rb', line 115

#udidString

Returns the unique device ID (e.g. of a mobile phone) linked to the person.

Returns:

  • (String)

    the unique device ID (e.g. of a mobile phone) linked to the person



# File 'lib/lws/presence.rb', line 95

#updated_atString

Returns the timestamp of when the person was last updated.

Returns:

  • (String)

    the timestamp of when the person was last updated



# File 'lib/lws/presence.rb', line 146