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:



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

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



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

attribute :company_id

#markersArray<Marker>

Returns the list of associated markers.

Returns:

  • (Array<Marker>)

    the list of associated markers



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

has_many :markers

#nameString

Returns the name of the map.

Returns:

  • (String)

    the name of the map



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

attribute :name

#sourceSource

Returns the map source used for tiling the map.

Returns:

  • (Source)

    the map source used for tiling the map



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

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



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

attribute :source_id