Class: LWS::Maps::Marker

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

Overview

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

#latString?

Returns the latitude of the map marker.

Returns:

  • (String, nil)

    the latitude of the map marker



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

attribute :lat

#longString?

Returns the longitued of the map marker.

Returns:

  • (String, nil)

    the longitued of the map marker



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

attribute :long

#mapMap

Returns the map that the marker is placed on.

Returns:

  • (Map)

    the map that the marker is placed on



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

belongs_to :map

#map_idInteger

Returns the ID of the map that the marker is placed on.

Returns:

  • (Integer)

    the ID of the map that the marker is placed on



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

attribute :map_id

#nameString

Returns the name of the map marker.

Returns:

  • (String)

    the name of the map marker



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

attribute :name

#websiteString?

Returns the website URL of the map marker.

Returns:

  • (String, nil)

    the website URL of the map marker



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

attribute :website