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 ⇒ Fixnum
The ID of the company the person belongs to.
-
#created_at ⇒ String
readonly
The timestamp of when the person was created.
-
#customer_reference ⇒ String?
The customer specific reference for the person.
-
#ero ⇒ Boolean
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?
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_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?
The 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
readonly
The timestamp of when the person was last updated.
Instance Attribute Details
#company ⇒ LWS::Auth::Company
131 |
# File 'lib/lws/apps/presence.rb', line 131 belongs_to :company, class_name: "LWS::Auth::Company" |
#company_id ⇒ Fixnum
135 |
# File 'lib/lws/apps/presence.rb', line 135 attribute :company_id |
#created_at ⇒ String (readonly)
195 |
# File 'lib/lws/apps/presence.rb', line 195 attribute :created_at |
#customer_reference ⇒ String?
139 |
# File 'lib/lws/apps/presence.rb', line 139 attribute :customer_reference |
#ero ⇒ Boolean
144 |
# File 'lib/lws/apps/presence.rb', line 144 attribute :ero |
#extra_info ⇒ String?
148 |
# File 'lib/lws/apps/presence.rb', line 148 attribute :extra_info |
#id ⇒ Fixnum (readonly)
127 |
# File 'lib/lws/apps/presence.rb', line 127 attribute :id |
#last_sync ⇒ String?
153 |
# File 'lib/lws/apps/presence.rb', line 153 attribute :last_sync |
#lat ⇒ Float?
157 |
# File 'lib/lws/apps/presence.rb', line 157 attribute :lat |
#location ⇒ Location
165 |
# File 'lib/lws/apps/presence.rb', line 165 belongs_to :location |
#location_id ⇒ Fixnum
169 |
# File 'lib/lws/apps/presence.rb', line 169 attribute :location_id |
#long ⇒ Float?
161 |
# File 'lib/lws/apps/presence.rb', line 161 attribute :long |
#name ⇒ String
173 |
# File 'lib/lws/apps/presence.rb', line 173 attribute :name |
#picture_url ⇒ String?
177 |
# File 'lib/lws/apps/presence.rb', line 177 attribute :picture_url |
#rfid ⇒ String?
181 |
# File 'lib/lws/apps/presence.rb', line 181 attribute :rfid |
#status ⇒ "available", ...
186 |
# File 'lib/lws/apps/presence.rb', line 186 attribute :status |
#udid ⇒ String?
191 |
# File 'lib/lws/apps/presence.rb', line 191 attribute :udid |
#updated_at ⇒ String (readonly)
199 |
# File 'lib/lws/apps/presence.rb', line 199 attribute :updated_at |