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.
420 |
# File 'lib/lws/apps/presence.rb', line 420 attribute :height |
#location ⇒ Location
Returns the location of the map this position is associated with.
425 |
# File 'lib/lws/apps/presence.rb', line 425 belongs_to :location |
#location_id ⇒ Location
Returns the ID of the location of the location map this position is associated with.
430 |
# File 'lib/lws/apps/presence.rb', line 430 attribute :location_id |
#location_map ⇒ Location::Map
Returns the location map the position belongs to.
434 435 436 |
# File 'lib/lws/apps/presence.rb', line 434 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.
440 |
# File 'lib/lws/apps/presence.rb', line 440 attribute :location_map_id |
#tracking_location ⇒ Location
Returns the location the position tracks on the map.
444 445 446 |
# File 'lib/lws/apps/presence.rb', line 444 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.
450 |
# File 'lib/lws/apps/presence.rb', line 450 attribute :tracking_location_id |
#width ⇒ Integer
Returns the width of the position on the map in percentage.
454 |
# File 'lib/lws/apps/presence.rb', line 454 attribute :width |
#x_pos ⇒ Integer
Returns the x_pos of the position on the map in percentage.
458 |
# File 'lib/lws/apps/presence.rb', line 458 attribute :x_pos |
#y_pos ⇒ Integer
Returns the y_pos of the position on the map in percentage.
462 |
# File 'lib/lws/apps/presence.rb', line 462 attribute :y_pos |