Class: LWS::Presence::Person

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

Overview

The person class

Instance Attribute Summary collapse

Instance Attribute Details

#companyLWS::Auth::Company

Returns the company the person belongs to.

Returns:



131
# File 'lib/lws/apps/presence.rb', line 131

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



135
# File 'lib/lws/apps/presence.rb', line 135

attribute :company_id

#created_atString (readonly)

Returns the timestamp of when the person was created.

Returns:

  • (String)

    the timestamp of when the person was created



195
# File 'lib/lws/apps/presence.rb', line 195

attribute :created_at

#customer_referenceString?

Returns the customer specific reference for the person.

Returns:

  • (String, nil)

    the customer specific reference for the person



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

attribute :customer_reference

#eroBoolean

Returns whether the person is emergency response certified.

Returns:

  • (Boolean)

    whether the person is emergency response certified



144
# File 'lib/lws/apps/presence.rb', line 144

attribute :ero

#extra_infoString?

Returns some extra info for the person.

Returns:

  • (String, nil)

    some extra info for the person



148
# File 'lib/lws/apps/presence.rb', line 148

attribute :extra_info

#idFixnum (readonly)

Returns the (unique) ID of the person.

Returns:

  • (Fixnum)

    the (unique) ID of the person



127
# File 'lib/lws/apps/presence.rb', line 127

attribute :id

#last_syncString?

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

Returns:

  • (String, nil)

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



153
# File 'lib/lws/apps/presence.rb', line 153

attribute :last_sync

#latFloat?

Returns the exact latitude of the person’s location.

Returns:

  • (Float, nil)

    the exact latitude of the person’s location



157
# File 'lib/lws/apps/presence.rb', line 157

attribute :lat

#locationLocation

Returns the location the person is located at.

Returns:

  • (Location)

    the location the person is located at



165
# File 'lib/lws/apps/presence.rb', line 165

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



169
# File 'lib/lws/apps/presence.rb', line 169

attribute :location_id

#longFloat?

Returns the exact longitude of the person’s location.

Returns:

  • (Float, nil)

    the exact longitude of the person’s location



161
# File 'lib/lws/apps/presence.rb', line 161

attribute :long

#nameString

Returns the name of the person.

Returns:

  • (String)

    the name of the person



173
# File 'lib/lws/apps/presence.rb', line 173

attribute :name

#picture_urlString?

Returns the URL of the picture of the person.

Returns:

  • (String, nil)

    the URL of the picture of the person



177
# File 'lib/lws/apps/presence.rb', line 177

attribute :picture_url

#rfidString?

Returns the RFID tag ID linked to the person.

Returns:

  • (String, nil)

    the RFID tag ID linked to the person



181
# File 'lib/lws/apps/presence.rb', line 181

attribute :rfid

#status"available", ...

Returns the presence status of the person.

Returns:

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

    the presence status of the person



186
# File 'lib/lws/apps/presence.rb', line 186

attribute :status

#udidString?

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

Returns:

  • (String, nil)

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



191
# File 'lib/lws/apps/presence.rb', line 191

attribute :udid

#updated_atString (readonly)

Returns the timestamp of when the person was last updated.

Returns:

  • (String)

    the timestamp of when the person was last updated



199
# File 'lib/lws/apps/presence.rb', line 199

attribute :updated_at