Class: LWS::Presence::Location

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

Overview

The location class

Instance Attribute Summary collapse

Instance Attribute Details

#capacityFixnum

Returns the capacity (maximum number of people) of the location (including descendant locations).

Returns:

  • (Fixnum)

    the capacity (maximum number of people) of the location (including descendant locations)



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

attribute :capacity

#capacity_usedFixnum

Returns the used capacity (present number of people) of the location (including descendant locations).

Returns:

  • (Fixnum)

    the used capacity (present number of people) of the location (including descendant locations)



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

attribute :capacity_used

#capacity_used_percentageFloat

Returns the used capacity percentage of the location (including descendant locations).

Returns:

  • (Float)

    the used capacity percentage of the location (including descendant locations)



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

attribute :capacity_used_precentage

#companyLWS::Auth::Company

Returns the company the location belongs to.

Returns:



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

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

#company_idFixnum

Returns the ID of the company the location belongs to.

Returns:

  • (Fixnum)

    the ID of the company the location belongs to



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

attribute :company_id

#created_atString (readonly)

Returns the timestamp of when the location was created.

Returns:

  • (String)

    the timestamp of when the location was created



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

attribute :created_at

#idFixnum (readonly)

Returns the (unique) ID of the location.

Returns:

  • (Fixnum)

    the (unique) ID of the location



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

attribute :id

#latFloat

Returns the latitude of the location.

Returns:

  • (Float)

    the latitude of the location



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

attribute :lat

#logoff_timeString

Returns the time everybody is automatically logged off (format HH:MM).

Returns:

  • (String)

    the time everybody is automatically logged off (format HH:MM)



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

attribute :logoff_time

#longFloat

Returns the longitude of the location.

Returns:

  • (Float)

    the longitude of the location



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

attribute :long

#map_location_idFixnum

Note:

There is not a relation for this at the moment!

Returns the ID of the map location associated with the location.

Returns:

  • (Fixnum)

    the ID of the map location associated with the location



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

attribute :map_location_id

#nameString

Returns the name of the location.

Returns:

  • (String)

    the name of the location



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

attribute :name

#parentLocation

Returns the parent of the location.

Returns:

  • (Location)

    the parent of the location



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

belongs_to :parent, class_name: "LWS::Presence::Location"

#parent_idFixnum

Returns the ID of the parent of the location.

Returns:

  • (Fixnum)

    the ID of the parent of the location



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

attribute :parent_id

#peopleArray<Person>

Returns the people associated with the location.

Returns:

  • (Array<Person>)

    the people associated with the location



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

has_many :people

#rangeInteger

Returns the range around the location in meters.

Returns:

  • (Integer)

    the range around the location in meters



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

attribute :range

#readersArray<Reader>

Returns the (RFID/code/ID/…) readers linked to this location.

Returns:

  • (Array<Reader>)

    the (RFID/code/ID/…) readers linked to this location



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

has_many :readers

#updated_atString (readonly)

Returns the timestamp of when the location was last updated.

Returns:

  • (String)

    the timestamp of when the location was last updated



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

attribute :updated_at