Class: LWS::Maps::Map

Inherits:
Generic::Model show all
Defined in:
lib/lws/apps/maps.rb

Overview

The map class

Instance Attribute Summary collapse

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

#companyLWS::Auth::Company

Returns the company that maintains/owns the map.

Returns:



44
# File 'lib/lws/apps/maps.rb', line 44

belongs_to :company, class_name: "LWS::Auth::Company"

#company_idInteger

Returns the ID of the company that maintains/owns the map.

Returns:

  • (Integer)

    the ID of the company that maintains/owns the map



48
# File 'lib/lws/apps/maps.rb', line 48

attribute :company_id

#markersArray<Marker>

Returns the list of associated markers.

Returns:

  • (Array<Marker>)

    the list of associated markers



52
# File 'lib/lws/apps/maps.rb', line 52

has_many :markers

#nameString

Returns the name of the map.

Returns:

  • (String)

    the name of the map



56
# File 'lib/lws/apps/maps.rb', line 56

attribute :name

#sourceSource

Returns the map source used for tiling the map.

Returns:

  • (Source)

    the map source used for tiling the map



60
# File 'lib/lws/apps/maps.rb', line 60

belongs_to :source

#source_idInteger

Returns the ID of the map source used for tiling the map.

Returns:

  • (Integer)

    the ID of the map source used for tiling the map



64
# File 'lib/lws/apps/maps.rb', line 64

attribute :source_id