Class: LWS::Presence::Journal

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

Overview

Note:

This class is only used within the context of the Location class.

The journal (entry) class

Instance Attribute Summary collapse

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_inString

Returns the timestamp of the check-in of this journal (entry).

Returns:

  • (String)

    the timestamp of the check-in of this journal (entry)



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

attribute :check_in

#check_outString?

Returns the timestamp of the check out of this journal (entry).

Returns:

  • (String, nil)

    the timestamp of the check out of this journal (entry)



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

attribute :check_out

#companyLWS::Auth::Company

Returns the company the journal (entry) belongs to.

Returns:



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

belongs_to :company, class_name: "LWS::Auth::Company"

#company_idInteger

Returns the ID of the company the journal (entry) belongs to.

Returns:

  • (Integer)

    the ID of the company the journal (entry) belongs to



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

attribute :company_id

#locationLocation

Returns the location the journal (entry) belongs to.

Returns:

  • (Location)

    the location the journal (entry) belongs to



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

belongs_to :location

#location_idInteger

Returns the ID of the location the journal (entry) belongs to.

Returns:

  • (Integer)

    the ID of the location the journal (entry) belongs to



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

attribute :location_id

#personPerson

Returns the person the journal (entry) belongs to.

Returns:

  • (Person)

    the person the journal (entry) belongs to



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

belongs_to :person

#person_idInteger

Returns the ID of the person the journal (entry) belongs to.

Returns:

  • (Integer)

    the ID of the person the journal (entry) belongs to



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

attribute :person_id