Class: LWS::Presence::Person
- Inherits:
-
Generic::Model
- Object
- Generic::Model
- LWS::Presence::Person
- Defined in:
- lib/lws/presence.rb
Overview
The person class
Instance Attribute Summary collapse
-
#company ⇒ Auth::Company
The company the person belongs to.
-
#company_id ⇒ Fixnum
The ID of the company the person belongs to.
-
#created_at ⇒ String
The timestamp of when the person was created.
-
#customer_reference ⇒ String
Customer specific reference for the person.
-
#ero ⇒ Boolean
Flag whether the person is emergency response certified.
-
#extra_info ⇒ String
Some extra info for the person.
-
#id ⇒ Fixnum
readonly
The (unique) ID of the person.
-
#last_sync ⇒ String
Last time the status was updated via a device or RFID tag.
-
#lat ⇒ Float
The exact latitude of the person’s location.
-
#location ⇒ Location
The location the person is located at.
-
#location_id ⇒ Fixnum
The ID of the location the person is located at.
-
#long ⇒ Float
The exact longitude of the person’s location.
-
#name ⇒ String
The name of the person.
-
#picture_url ⇒ String
An URL of the picture of the person.
-
#rfid ⇒ String
The RFID tag ID linked to the person.
-
#status ⇒ "available", ...
The presence status of the person.
-
#udid ⇒ String
The unique device ID (e.g. of a mobile phone) linked to the person.
-
#updated_at ⇒ String
The timestamp of when the person was last updated.
Instance Attribute Details
#company ⇒ Auth::Company
Returns the company the person belongs to.
104 |
# File 'lib/lws/presence.rb', line 104 belongs_to :company, class_name: "LWS::Auth::Company" |
#company_id ⇒ Fixnum
Returns the ID of the company the person belongs to.
|
|
# File 'lib/lws/presence.rb', line 106
|
#created_at ⇒ String
Returns the timestamp of when the person was created.
|
|
# File 'lib/lws/presence.rb', line 143
|
#customer_reference ⇒ String
Returns customer specific reference for the person.
|
|
# File 'lib/lws/presence.rb', line 129
|
#ero ⇒ Boolean
Returns flag whether the person is emergency response certified.
|
|
# File 'lib/lws/presence.rb', line 132
|
#extra_info ⇒ String
Returns some extra info for the person.
|
|
# File 'lib/lws/presence.rb', line 126
|
#id ⇒ Fixnum (readonly)
Returns the (unique) ID of the person.
|
|
# File 'lib/lws/presence.rb', line 89
|
#last_sync ⇒ String
Returns last time the status was updated via a device or RFID tag.
|
|
# File 'lib/lws/presence.rb', line 139
|
#lat ⇒ Float
Returns the exact latitude of the person’s location.
|
|
# File 'lib/lws/presence.rb', line 109
|
#location ⇒ Location
Returns the location the person is located at.
121 |
# File 'lib/lws/presence.rb', line 121 belongs_to :location |
#location_id ⇒ Fixnum
Returns the ID of the location the person is located at.
|
|
# File 'lib/lws/presence.rb', line 123
|
#long ⇒ Float
Returns the exact longitude of the person’s location.
|
|
# File 'lib/lws/presence.rb', line 112
|
#name ⇒ String
Returns the name of the person.
|
|
# File 'lib/lws/presence.rb', line 92
|
#picture_url ⇒ String
Returns an URL of the picture of the person.
|
|
# File 'lib/lws/presence.rb', line 136
|
#rfid ⇒ String
Returns the RFID tag ID linked to the person.
|
|
# File 'lib/lws/presence.rb', line 99
|
#status ⇒ "available", ...
Returns the presence status of the person.
|
|
# File 'lib/lws/presence.rb', line 115
|
#udid ⇒ String
Returns the unique device ID (e.g. of a mobile phone) linked to the person.
|
|
# File 'lib/lws/presence.rb', line 95
|
#updated_at ⇒ String
Returns the timestamp of when the person was last updated.
|
|
# File 'lib/lws/presence.rb', line 146
|