Class: LWS::Presence::Location

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

Overview

The location class

Defined Under Namespace

Classes: Map

Instance Attribute Summary collapse

Attributes inherited from Generic::Model

#created_at, #id, #updated_at, #url, #url_html

Method Summary

Methods inherited from Generic::Model

#dig, #reload, #rollback, #save

Instance Attribute Details

#ancestor_idsArray<Integer>



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

attribute :ancestor_ids

#appointmentsArray<Appointment>



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

has_many :appointments

#capacityInteger



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

attribute :capacity

#capacity_treeInteger



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

attribute :capacity_tree

#capacity_usedInteger



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

attribute :capacity_used

#capacity_used_percentageFloat



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

attribute :capacity_used_precentage

#capacity_used_percentage_treeFloat



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

attribute :capacity_used_precentage_tree

#capacity_used_treeInteger



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

attribute :capacity_used_tree

#checkin_status"available", ...



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

attribute :checkin_status

#checkout_alter_status"available", ...



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

attribute :checkout_alter_status

#checkout_locationLocation?



147
148
149
# File 'lib/lws/apps/presence.rb', line 147

belongs_to :checkout_location, class_name: "LWS::Presence::Location",
foreign_key: "checkout_location_id",
uri: "locations/:id"

#checkout_location_idInteger?



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

attribute :checkout_location_id

#companyLWS::Auth::Company



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

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

#company_idInteger



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

attribute :company_id

#descendant_idsArray<Integer>



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

attribute :descendant_ids

#image_storage_idString?



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

attribute :image_storage_id

#image_urlString?

Note:

To be able retrieve this, the token needs to be passed via X-Token in the HTTP request headers!

Returns the URL of the image of the location.



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

attribute :image_url

#latFloat



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

attribute :lat

#logoff_timeString

The format of the time is HH:MM and should be interpreted in the time zone of the location (see also #time_zone).



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

attribute :logoff_time

#longFloat



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

attribute :long

#map_positionsArray<Location::Map::Position>



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

has_many :map_positions, class_name: "LWS::Presence::Location::Map::Position"

#mapsArray<Location::Map>



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

has_many :maps, class_name: "LWS::Presence::Location::Map"

#nameString



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

attribute :name

#ownerPerson?



208
209
210
# File 'lib/lws/apps/presence.rb', line 208

belongs_to :owner, class_name: "LWS::Presence::Person",
foreign_key: "owner_id",
uri: "people/:id"

#owner_idFixnum?



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

attribute :owner_id

#parentLocation



218
219
220
# File 'lib/lws/apps/presence.rb', line 218

belongs_to :parent, class_name: "LWS::Presence::Location",
foreign_key: "parent_id",
uri: "locations/:id"

#parent_idInteger



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

attribute :parent_id

#peopleArray<Person>



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

has_many :people

#people_treeArray<Person>



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

has_many :people_tree, class_name: "LWS::Presence::Person"

#rangeInteger



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

attribute :range

#readersArray<Reader>



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

has_many :readers

#status"available", ...



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

attribute :status

#time_zoneString



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

attribute :time_zone

#uuidString



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

attribute :uuid