Class: LWS::Presence::Location::Map
- Inherits:
-
Generic::Model
- Object
- Spyke::Base
- Generic::Model
- LWS::Presence::Location::Map
- 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
-
#location ⇒ Location
The location the map belongs to.
-
#location_id ⇒ Integer
The ID of the location the map belongs to.
-
#name ⇒ String?
The name of the map.
-
#picture_url ⇒ String?
The URL of the picture of the map.
-
#position ⇒ Integer
The position (index) of the map, if multiple are present.
-
#positions ⇒ Array<Location::Map::Position>
The positions linked to this map.
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
#location ⇒ Location
Returns the location the map belongs to.
243 |
# File 'lib/lws/apps/presence.rb', line 243 belongs_to :location |
#location_id ⇒ Integer
Returns the ID of the location the map belongs to.
247 |
# File 'lib/lws/apps/presence.rb', line 247 attribute :location_id |
#name ⇒ String?
Returns the name of the map.
251 |
# File 'lib/lws/apps/presence.rb', line 251 attribute :name |
#picture_url ⇒ String?
Returns the URL of the picture of the map.
255 |
# File 'lib/lws/apps/presence.rb', line 255 attribute :picture_url |
#position ⇒ Integer
Returns the position (index) of the map, if multiple are present.
260 |
# File 'lib/lws/apps/presence.rb', line 260 attribute :position |
#positions ⇒ Array<Location::Map::Position>
Returns the positions linked to this map.
265 |
# File 'lib/lws/apps/presence.rb', line 265 has_many :positions |