Class: Location
- Inherits:
-
Object
- Object
- Location
- Defined in:
- lib/objects/location.rb
Overview
Monday
, August
24
2020
EAT
This object represents a point on the map
Instance Method Summary collapse
-
#initialize(location) ⇒ Location
constructor
:nodoc:.
-
#latitude ⇒ Object
Latitude as defined by sender.
-
#longitude ⇒ Object
Longitude as defined by sender.
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
#latitude ⇒ Object
Latitude as defined by sender.
18 19 20 |
# File 'lib/objects/location.rb', line 18 def latitude @loc.latitude end |
#longitude ⇒ Object
Longitude as defined by sender.
13 14 15 |
# File 'lib/objects/location.rb', line 13 def longitude @loc.longitude end |