Class: LWS::Presence::Person
- Inherits:
-
Generic::Model
- Object
- Spyke::Base
- Generic::Model
- LWS::Presence::Person
- Defined in:
- lib/lws/apps/presence.rb
Overview
The person class
Instance Attribute Summary collapse
-
#company ⇒ LWS::Auth::Company
The company the person belongs to.
-
#company_id ⇒ Integer
The ID of the company the person belongs to.
-
#customer_reference ⇒ String?
The customer specific reference for the person.
-
#email ⇒ String?
The email address of the person.
-
#ero ⇒ Boolean
Whether the person is emergency response ceritified.
-
#extra_info ⇒ String?
Some extra info for the person.
-
#import_ref ⇒ String?
Reference for storing the uid of the remote database.
-
#last_sync ⇒ String?
The last date/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_ancestors_ids ⇒ Array<Integer>
The IDs of the (nesting) locations the person is located at.
-
#location_id ⇒ Integer
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.
-
#phone_extension ⇒ String
The fixed phonenumber extension of the person.
-
#phone_fixed ⇒ String
The fixed phonenumber of the person.
-
#phone_mobile ⇒ String
The mobile phonenumber of the person.
-
#picture_url ⇒ String?
The URL of the picture of the person.
-
#present ⇒ Boolean
If a person is present at a location.
-
#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.
-
#vehicle_registration_plate ⇒ String?
The vehicle registration plate of the persons transport.
-
#visibility ⇒ "public", "private"
If a person should be protected by not showing critical information.
Attributes inherited from Generic::Model
#created_at, #id, #updated_at, #url, #url_html
Method Summary
Methods inherited from Generic::Model
Instance Attribute Details
#company ⇒ LWS::Auth::Company
Returns the company the person belongs to.
248 |
# File 'lib/lws/apps/presence.rb', line 248 belongs_to :company, class_name: "LWS::Auth::Company" |
#company_id ⇒ Integer
Returns the ID of the company the person belongs to.
252 |
# File 'lib/lws/apps/presence.rb', line 252 attribute :company_id |
#customer_reference ⇒ String?
Returns the customer specific reference for the person.
256 |
# File 'lib/lws/apps/presence.rb', line 256 attribute :customer_reference |
#email ⇒ String?
Returns the email address of the person.
260 |
# File 'lib/lws/apps/presence.rb', line 260 attribute :email |
#ero ⇒ Boolean
Returns whether the person is emergency response ceritified.
265 |
# File 'lib/lws/apps/presence.rb', line 265 attribute :ero |
#extra_info ⇒ String?
Returns some extra info for the person.
269 |
# File 'lib/lws/apps/presence.rb', line 269 attribute :extra_info |
#import_ref ⇒ String?
Returns reference for storing the uid of the remote database.
273 |
# File 'lib/lws/apps/presence.rb', line 273 attribute :import_ref |
#last_sync ⇒ String?
Returns the last date/time the status was updated via a device or RFID tag.
278 |
# File 'lib/lws/apps/presence.rb', line 278 attribute :last_sync |
#lat ⇒ Float?
Returns the exact latitude of the person’s location.
282 |
# File 'lib/lws/apps/presence.rb', line 282 attribute :lat |
#location ⇒ Location
Returns the location the person is located at.
290 |
# File 'lib/lws/apps/presence.rb', line 290 belongs_to :location |
#location_ancestors_ids ⇒ Array<Integer>
Returns the IDs of the (nesting) locations the person is located at.
295 |
# File 'lib/lws/apps/presence.rb', line 295 attribute :location_ancestor_ids |
#location_id ⇒ Integer
Returns the ID of the location the person is located at.
299 |
# File 'lib/lws/apps/presence.rb', line 299 attribute :location_id |
#long ⇒ Float?
Returns the exact longitude of the person’s location.
286 |
# File 'lib/lws/apps/presence.rb', line 286 attribute :long |
#name ⇒ String
Returns the name of the person.
303 |
# File 'lib/lws/apps/presence.rb', line 303 attribute :name |
#phone_extension ⇒ String
Returns the fixed phonenumber extension of the person.
315 |
# File 'lib/lws/apps/presence.rb', line 315 attribute :phone_extension |
#phone_fixed ⇒ String
Returns the fixed phonenumber of the person.
307 |
# File 'lib/lws/apps/presence.rb', line 307 attribute :phone_fixed |
#phone_mobile ⇒ String
Returns the mobile phonenumber of the person.
311 |
# File 'lib/lws/apps/presence.rb', line 311 attribute :phone_moblie |
#picture_url ⇒ String?
Returns the URL of the picture of the person.
319 |
# File 'lib/lws/apps/presence.rb', line 319 attribute :picture_url |
#present ⇒ Boolean
Returns if a person is present at a location. It looks at the state of a person so that local state checking is not needed.
325 |
# File 'lib/lws/apps/presence.rb', line 325 attribute :present |
#rfid ⇒ String?
Returns the RFID tag ID linked to the person.
329 |
# File 'lib/lws/apps/presence.rb', line 329 attribute :rfid |
#status ⇒ "available", ...
Returns the presence status of the person.
334 |
# File 'lib/lws/apps/presence.rb', line 334 attribute :status |
#udid ⇒ String?
Returns the unique device ID (e.g. of a mobile phone) linked to the person.
339 |
# File 'lib/lws/apps/presence.rb', line 339 attribute :udid |
#vehicle_registration_plate ⇒ String?
Returns The vehicle registration plate of the persons transport.
343 |
# File 'lib/lws/apps/presence.rb', line 343 attribute :vehicle_registration_plate |
#visibility ⇒ "public", "private"
Returns if a person should be protected by not showing critical information.
347 |
# File 'lib/lws/apps/presence.rb', line 347 attribute :visibility |