Class: LWS::Maps::Source

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

Overview

The map source 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

#keyString

Returns the key used by the map implementation to select the map source.

Returns:

  • (String)

    the key used by the map implementation to select the map source



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

attribute :key

#map_idsArray<Integer>

Returns the IDs of the maps using the map source.

Returns:

  • (Array<Integer>)

    the IDs of the maps using the map source



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

attribute :map_ids

#mapsArray<Map>

Returns the maps using the map source.

Returns:

  • (Array<Map>)

    the maps using the map source



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

has_many :maps

#nameString

Returns the name of the map source.

Returns:

  • (String)

    the name of the map source



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

attribute :name