Class: Location

Inherits:
Object
  • Object
show all
Defined in:
lib/objects/location.rb

Overview

Monday, August 24 2020 EAT

This object represents a point on the map

Instance Method Summary collapse

Constructor Details

#initialize(location) ⇒ Location

:nodoc:



8
9
10
# File 'lib/objects/location.rb', line 8

def initialize(location) # :nodoc:
  @loc = location
end

Instance Method Details

#latitudeObject

Latitude as defined by sender.



18
19
20
# File 'lib/objects/location.rb', line 18

def latitude
  @loc.latitude
end

#longitudeObject

Longitude as defined by sender.



13
14
15
# File 'lib/objects/location.rb', line 13

def longitude
  @loc.longitude
end