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



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

attribute :key

#mapsArray<Map>

Returns the maps using the map source.

Returns:

  • (Array<Map>)

    the maps using the map source



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

has_many :maps

#nameString

Returns the name of the map source.

Returns:

  • (String)

    the name of the map source



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

attribute :name