Class: MapSource::Waypoint
- Inherits:
-
Object
- Object
- MapSource::Waypoint
- Defined in:
- lib/mapsource/structure.rb
Overview
Public: A Waypoint.
Instance Attribute Summary collapse
-
#address ⇒ Object
Returns the value of attribute address.
-
#altitude ⇒ Object
Returns the value of attribute altitude.
-
#category ⇒ Object
Returns the value of attribute category.
-
#city ⇒ Object
Returns the value of attribute city.
-
#creation_time ⇒ Object
Returns the value of attribute creation_time.
-
#depth ⇒ Object
Returns the value of attribute depth.
-
#description ⇒ Object
Returns the value of attribute description.
-
#facility ⇒ Object
Returns the value of attribute facility.
-
#icon ⇒ Object
Returns the value of attribute icon.
-
#latitude ⇒ Object
Returns the value of attribute latitude.
-
#longitude ⇒ Object
Returns the value of attribute longitude.
-
#notes ⇒ Object
Returns the value of attribute notes.
-
#proximity ⇒ Object
Returns the value of attribute proximity.
-
#shortname ⇒ Object
Returns the value of attribute shortname.
-
#state ⇒ Object
Returns the value of attribute state.
-
#temperature ⇒ Object
Returns the value of attribute temperature.
-
#urls ⇒ Object
readonly
Returns the value of attribute urls.
Instance Method Summary collapse
- #add_url(url) ⇒ Object
-
#initialize(latitude, longitude) ⇒ Waypoint
constructor
A new instance of Waypoint.
- #set_creation_time(value) ⇒ Object
Constructor Details
#initialize(latitude, longitude) ⇒ Waypoint
Returns a new instance of Waypoint.
14 15 16 17 18 |
# File 'lib/mapsource/structure.rb', line 14 def initialize(latitude, longitude) @latitude = latitude @longitude = longitude @urls = [] end |
Instance Attribute Details
#address ⇒ Object
Returns the value of attribute address.
11 12 13 |
# File 'lib/mapsource/structure.rb', line 11 def address @address end |
#altitude ⇒ Object
Returns the value of attribute altitude.
11 12 13 |
# File 'lib/mapsource/structure.rb', line 11 def altitude @altitude end |
#category ⇒ Object
Returns the value of attribute category.
11 12 13 |
# File 'lib/mapsource/structure.rb', line 11 def category @category end |
#city ⇒ Object
Returns the value of attribute city.
11 12 13 |
# File 'lib/mapsource/structure.rb', line 11 def city @city end |
#creation_time ⇒ Object
Returns the value of attribute creation_time.
11 12 13 |
# File 'lib/mapsource/structure.rb', line 11 def creation_time @creation_time end |
#depth ⇒ Object
Returns the value of attribute depth.
11 12 13 |
# File 'lib/mapsource/structure.rb', line 11 def depth @depth end |
#description ⇒ Object
Returns the value of attribute description.
11 12 13 |
# File 'lib/mapsource/structure.rb', line 11 def description @description end |
#facility ⇒ Object
Returns the value of attribute facility.
11 12 13 |
# File 'lib/mapsource/structure.rb', line 11 def facility @facility end |
#icon ⇒ Object
Returns the value of attribute icon.
11 12 13 |
# File 'lib/mapsource/structure.rb', line 11 def icon @icon end |
#latitude ⇒ Object
Returns the value of attribute latitude.
11 12 13 |
# File 'lib/mapsource/structure.rb', line 11 def latitude @latitude end |
#longitude ⇒ Object
Returns the value of attribute longitude.
11 12 13 |
# File 'lib/mapsource/structure.rb', line 11 def longitude @longitude end |
#notes ⇒ Object
Returns the value of attribute notes.
11 12 13 |
# File 'lib/mapsource/structure.rb', line 11 def notes @notes end |
#proximity ⇒ Object
Returns the value of attribute proximity.
11 12 13 |
# File 'lib/mapsource/structure.rb', line 11 def proximity @proximity end |
#shortname ⇒ Object
Returns the value of attribute shortname.
11 12 13 |
# File 'lib/mapsource/structure.rb', line 11 def shortname @shortname end |
#state ⇒ Object
Returns the value of attribute state.
11 12 13 |
# File 'lib/mapsource/structure.rb', line 11 def state @state end |
#temperature ⇒ Object
Returns the value of attribute temperature.
11 12 13 |
# File 'lib/mapsource/structure.rb', line 11 def temperature @temperature end |
#urls ⇒ Object (readonly)
Returns the value of attribute urls.
12 13 14 |
# File 'lib/mapsource/structure.rb', line 12 def urls @urls end |
Instance Method Details
#add_url(url) ⇒ Object
20 21 22 |
# File 'lib/mapsource/structure.rb', line 20 def add_url(url) @urls << url end |
#set_creation_time(value) ⇒ Object
24 25 26 |
# File 'lib/mapsource/structure.rb', line 24 def set_creation_time(value) puts value end |