Class: LWS::Presence::Location::Map

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

Overview

Note:

This class is only used within the context of the LWS::Presence::Location class.

The location map class

Defined Under Namespace

Classes: Position

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

#image_storage_idString?

Returns the storage ID of the image of the map.

Returns:

  • (String, nil)

    the storage ID of the image of the map



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

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

Returns:

  • (String, nil)

    the URL of the image of the map



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

attribute :image_url

#locationLocation

Returns the location the map belongs to.

Returns:

  • (Location)

    the location the map belongs to



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

belongs_to :location

#location_idInteger

Returns the ID of the location the map belongs to.

Returns:

  • (Integer)

    the ID of the location the map belongs to



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

attribute :location_id

#nameString?

Returns the name of the map.

Returns:

  • (String, nil)

    the name of the map



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

attribute :name

#picture_urlString?

Deprecated.

Unauthenticated retrieval of the picture will not longer be supported in upcoming releases of LWS. Use #image_url instead!

Returns the URL of the picture of the map.

Returns:

  • (String, nil)

    the URL of the picture of the map



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

attribute :picture_url

#positionInteger

Returns the position (index) of the map, if multiple are present.

Returns:

  • (Integer)

    the position (index) of the map, if multiple are present



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

attribute :position

#positionsArray<Location::Map::Position>

Returns the positions linked to this map.

Returns:



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

has_many :positions