Class: LWS::Presence::Journal
- Inherits:
-
Generic::Model
- Object
- Spyke::Base
- Generic::Model
- LWS::Presence::Journal
- Defined in:
- lib/lws/apps/presence.rb
Overview
This class is only used within the context of the Location class.
The journal (entry) class
Instance Attribute Summary collapse
-
#check_in ⇒ String
The timestamp of the check-in of this journal (entry).
-
#check_out ⇒ String?
The timestamp of the check out of this journal (entry).
-
#company ⇒ LWS::Auth::Company
The company the journal (entry) belongs to.
-
#company_id ⇒ Integer
The ID of the company the journal (entry) belongs to.
-
#location ⇒ Location
The location the journal (entry) belongs to.
-
#location_id ⇒ Integer
The ID of the location the journal (entry) belongs to.
-
#person ⇒ Person
The person the journal (entry) belongs to.
-
#person_id ⇒ Integer
The ID of the person the journal (entry) belongs to.
Attributes inherited from Generic::Model
#created_at, #id, #updated_at, #url, #url_html
Method Summary
Methods inherited from Generic::Model
#deep_dup, #dig, #reload, #rollback, #save
Instance Attribute Details
#check_in ⇒ String
Returns the timestamp of the check-in of this journal (entry).
99 |
# File 'lib/lws/apps/presence.rb', line 99 attribute :check_in |
#check_out ⇒ String?
Returns the timestamp of the check out of this journal (entry).
103 |
# File 'lib/lws/apps/presence.rb', line 103 attribute :check_out |
#company ⇒ LWS::Auth::Company
Returns the company the journal (entry) belongs to.
107 |
# File 'lib/lws/apps/presence.rb', line 107 belongs_to :company, class_name: "LWS::Auth::Company" |
#company_id ⇒ Integer
Returns the ID of the company the journal (entry) belongs to.
111 |
# File 'lib/lws/apps/presence.rb', line 111 attribute :company_id |
#location ⇒ Location
Returns the location the journal (entry) belongs to.
115 |
# File 'lib/lws/apps/presence.rb', line 115 belongs_to :location |
#location_id ⇒ Integer
Returns the ID of the location the journal (entry) belongs to.
119 |
# File 'lib/lws/apps/presence.rb', line 119 attribute :location_id |
#person ⇒ Person
Returns the person the journal (entry) belongs to.
123 |
# File 'lib/lws/apps/presence.rb', line 123 belongs_to :person |
#person_id ⇒ Integer
Returns the ID of the person the journal (entry) belongs to.
127 |
# File 'lib/lws/apps/presence.rb', line 127 attribute :person_id |