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 ⇒ Fixnum
The ID of the company that maintains/owns the map.
-
#created_at ⇒ String
readonly
The timestamp of when the map was created.
-
#id ⇒ Fixnum
readonly
The (unique) ID of the map.
-
#markers ⇒ Array<Marker>
The list of associated markers.
-
#name ⇒ String
The name of the map.
-
#source ⇒ Source
The map source used for tiling the map.
-
#source_id ⇒ Fixnum
The ID of the map source used for tiling the map.
-
#updated_at ⇒ String
readonly
The timestamp of when the map was last updated.
Instance Attribute Details
#company ⇒ LWS::Auth::Company
Returns the company that maintains/owns the map.
48 |
# File 'lib/lws/apps/maps.rb', line 48 belongs_to :company, class_name: "LWS::Auth::Company" |
#company_id ⇒ Fixnum
Returns the ID of the company that maintains/owns the map.
52 |
# File 'lib/lws/apps/maps.rb', line 52 attribute :company_id |
#created_at ⇒ String (readonly)
Returns the timestamp of when the map was created.
72 |
# File 'lib/lws/apps/maps.rb', line 72 attribute :created_at |
#id ⇒ Fixnum (readonly)
Returns the (unique) ID of the map.
44 |
# File 'lib/lws/apps/maps.rb', line 44 attribute :id |
#markers ⇒ Array<Marker>
Returns the list of 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 ⇒ Fixnum
Returns the ID of the map source used for tiling the map.
68 |
# File 'lib/lws/apps/maps.rb', line 68 attribute :source_id |
#updated_at ⇒ String (readonly)
Returns the timestamp of when the map was last updated.
76 |
# File 'lib/lws/apps/maps.rb', line 76 attribute :updated_at |