Class: MapSource::Waypoint

Inherits:
Object
  • Object
show all
Defined in:
lib/mapsource/structure.rb

Overview

Public: A Waypoint.

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#addressObject

Returns the value of attribute address.



11
12
13
# File 'lib/mapsource/structure.rb', line 11

def address
  @address
end

#altitudeObject

Returns the value of attribute altitude.



11
12
13
# File 'lib/mapsource/structure.rb', line 11

def altitude
  @altitude
end

#categoryObject

Returns the value of attribute category.



11
12
13
# File 'lib/mapsource/structure.rb', line 11

def category
  @category
end

#cityObject

Returns the value of attribute city.



11
12
13
# File 'lib/mapsource/structure.rb', line 11

def city
  @city
end

#creation_timeObject

Returns the value of attribute creation_time.



11
12
13
# File 'lib/mapsource/structure.rb', line 11

def creation_time
  @creation_time
end

#depthObject

Returns the value of attribute depth.



11
12
13
# File 'lib/mapsource/structure.rb', line 11

def depth
  @depth
end

#descriptionObject

Returns the value of attribute description.



11
12
13
# File 'lib/mapsource/structure.rb', line 11

def description
  @description
end

#facilityObject

Returns the value of attribute facility.



11
12
13
# File 'lib/mapsource/structure.rb', line 11

def facility
  @facility
end

#iconObject

Returns the value of attribute icon.



11
12
13
# File 'lib/mapsource/structure.rb', line 11

def icon
  @icon
end

#latitudeObject

Returns the value of attribute latitude.



11
12
13
# File 'lib/mapsource/structure.rb', line 11

def latitude
  @latitude
end

#longitudeObject

Returns the value of attribute longitude.



11
12
13
# File 'lib/mapsource/structure.rb', line 11

def longitude
  @longitude
end

#notesObject

Returns the value of attribute notes.



11
12
13
# File 'lib/mapsource/structure.rb', line 11

def notes
  @notes
end

#proximityObject

Returns the value of attribute proximity.



11
12
13
# File 'lib/mapsource/structure.rb', line 11

def proximity
  @proximity
end

#shortnameObject

Returns the value of attribute shortname.



11
12
13
# File 'lib/mapsource/structure.rb', line 11

def shortname
  @shortname
end

#stateObject

Returns the value of attribute state.



11
12
13
# File 'lib/mapsource/structure.rb', line 11

def state
  @state
end

#temperatureObject

Returns the value of attribute temperature.



11
12
13
# File 'lib/mapsource/structure.rb', line 11

def temperature
  @temperature
end

#urlsObject (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