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

#deep_dup, #dig, #reload, #rollback, #save

Instance Attribute Details

#ancestor_idsArray<Integer>



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

attribute :ancestor_ids

#appointmentsArray<Appointment>



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

has_many :appointments

#capacityInteger



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

attribute :capacity

#capacity_treeInteger



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

attribute :capacity_tree

#capacity_usedInteger



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

attribute :capacity_used

#capacity_used_percentageFloat



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

attribute :capacity_used_precentage

#capacity_used_percentage_treeFloat



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

attribute :capacity_used_precentage_tree

#capacity_used_treeInteger



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

attribute :capacity_used_tree

#checkin_status"available", ...



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

attribute :checkin_status

#checkout_alter_status"available", ...



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

attribute :checkout_alter_status

#checkout_locationLocation?



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

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

#checkout_location_idInteger?



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

attribute :checkout_location_id

#companyLWS::Auth::Company



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

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

#company_idInteger



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

attribute :company_id

#descendant_idsArray<Integer>



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

attribute :descendant_ids

#image_storage_idString?



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

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.



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

attribute :image_url

#journalsArray<Journal>



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

has_many :journals, class: "LWS::Presence::Journal"

#latFloat



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

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).



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

attribute :logoff_time

#longFloat



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

attribute :long

#map_positionsArray<Location::Map::Position>



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

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

#mapsArray<Location::Map>



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

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

#nameString



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

attribute :name

#ownerPerson?



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

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

#owner_idFixnum?



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

attribute :owner_id

#parentLocation



262
263
264
# File 'lib/lws/apps/presence.rb', line 262

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

#parent_idInteger



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

attribute :parent_id

#peopleArray<Person>



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

has_many :people

#people_treeArray<Person>



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

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

#rangeInteger



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

attribute :range

#readersArray<Reader>



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

has_many :readers

#status"available", ...



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

attribute :status

#time_zoneString



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

attribute :time_zone

#uuidString



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

attribute :uuid