Class: LWS::Presence::Location::Map::Position
- Inherits:
-
Generic::Model
- Object
- Spyke::Base
- Generic::Model
- LWS::Presence::Location::Map::Position
- Defined in:
- lib/lws/apps/presence.rb
Overview
This class is only used within the context of the LWS::Presence::Location::Map class.
The map position class
Instance Attribute Summary collapse
-
#height ⇒ Integer
The height of the position on the map in percentage.
-
#location ⇒ Location
The location of the map this position is associated with.
-
#location_id ⇒ Location
The ID of the location of the location map this position is associated with.
-
#location_map ⇒ Location::Map
The location map the position belongs to.
-
#location_map_id ⇒ Integer
The ID of the location map the position belongs to.
-
#tracking_location ⇒ Location
The location the position tracks on the map.
-
#tracking_location_id ⇒ Integer
The ID of the location the position tracks on the map.
-
#width ⇒ Integer
The width of the position on the map in percentage.
-
#x_pos ⇒ Integer
The x_pos of the position on the map in percentage.
-
#y_pos ⇒ Integer
The y_pos of the position on the map in percentage.
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
#height ⇒ Integer
Returns the height of the position on the map in percentage.
377 |
# File 'lib/lws/apps/presence.rb', line 377 attribute :height |
#location ⇒ Location
Returns the location of the map this position is associated with.
382 |
# File 'lib/lws/apps/presence.rb', line 382 belongs_to :location |
#location_id ⇒ Location
Returns the ID of the location of the location map this position is associated with.
387 |
# File 'lib/lws/apps/presence.rb', line 387 attribute :location_id |
#location_map ⇒ Location::Map
Returns the location map the position belongs to.
391 392 393 |
# File 'lib/lws/apps/presence.rb', line 391 belongs_to :location_map, class_name: "LWS::Presence::Location::Map", foreign_key: "location_map_id", uri: "locations/:location_id/maps/:id" |
#location_map_id ⇒ Integer
Returns the ID of the location map the position belongs to.
397 |
# File 'lib/lws/apps/presence.rb', line 397 attribute :location_map_id |
#tracking_location ⇒ Location
Returns the location the position tracks on the map.
401 402 403 |
# File 'lib/lws/apps/presence.rb', line 401 belongs_to :tracking_location, class_name: "LWS::Presence::Location", foreign_key: "tracking_location_id", uri: "locations/:id" |
#tracking_location_id ⇒ Integer
Returns the ID of the location the position tracks on the map.
407 |
# File 'lib/lws/apps/presence.rb', line 407 attribute :tracking_location_id |
#width ⇒ Integer
Returns the width of the position on the map in percentage.
411 |
# File 'lib/lws/apps/presence.rb', line 411 attribute :width |
#x_pos ⇒ Integer
Returns the x_pos of the position on the map in percentage.
415 |
# File 'lib/lws/apps/presence.rb', line 415 attribute :x_pos |
#y_pos ⇒ Integer
Returns the y_pos of the position on the map in percentage.
419 |
# File 'lib/lws/apps/presence.rb', line 419 attribute :y_pos |