Class: LWS::Maps::Map
- Inherits:
-
Generic::Model
- Object
- Spyke::Base
- Generic::Model
- LWS::Maps::Map
- Defined in:
- lib/lws/apps/maps.rb
Overview
The map class
Instance Attribute Summary collapse
-
#company ⇒ LWS::Auth::Company
The company that maintains/owns the map.
-
#company_id ⇒ Integer
The ID of the company that maintains/owns the map.
-
#marker_ids ⇒ Array<Integer>
The IDs of the associated markers.
-
#markers ⇒ Array<Marker>
The associated markers.
-
#name ⇒ String
The name of the map.
-
#source ⇒ Source
The map source used for tiling the map.
-
#source_id ⇒ Integer
The ID of the map source used for tiling the map.
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
#company ⇒ LWS::Auth::Company
Returns the company that maintains/owns the map.
44 |
# File 'lib/lws/apps/maps.rb', line 44 belongs_to :company, class_name: "LWS::Auth::Company" |
#company_id ⇒ Integer
Returns the ID of the company that maintains/owns the map.
48 |
# File 'lib/lws/apps/maps.rb', line 48 attribute :company_id |
#marker_ids ⇒ Array<Integer>
Returns the IDs of the associated markers.
52 |
# File 'lib/lws/apps/maps.rb', line 52 attribute :marker_ids |
#markers ⇒ Array<Marker>
Returns the associated markers.
56 |
# File 'lib/lws/apps/maps.rb', line 56 has_many :markers |
#name ⇒ String
Returns the name of the map.
60 |
# File 'lib/lws/apps/maps.rb', line 60 attribute :name |
#source ⇒ Source
Returns the map source used for tiling the map.
64 |
# File 'lib/lws/apps/maps.rb', line 64 belongs_to :source |
#source_id ⇒ Integer
Returns the ID of the map source used for tiling the map.
68 |
# File 'lib/lws/apps/maps.rb', line 68 attribute :source_id |