Class: IGC::Location
- Inherits:
-
Object
- Object
- IGC::Location
- Defined in:
- lib/igc/location.rb
Overview
IGC::Location represents a location in the world using WGS84 coordinates
Instance Attribute Summary collapse
-
#latitude ⇒ Object
Returns the value of attribute latitude.
-
#longitude ⇒ Object
Returns the value of attribute longitude.
Instance Method Summary collapse
-
#initialize(latitude:, longitude:) ⇒ Location
constructor
A new instance of Location.
Constructor Details
#initialize(latitude:, longitude:) ⇒ Location
9 10 11 12 |
# File 'lib/igc/location.rb', line 9 def initialize(latitude:, longitude:) @latitude = latitude @longitude = longitude end |
Instance Attribute Details
#latitude ⇒ Object
Returns the value of attribute latitude.
6 7 8 |
# File 'lib/igc/location.rb', line 6 def latitude @latitude end |
#longitude ⇒ Object
Returns the value of attribute longitude.
6 7 8 |
# File 'lib/igc/location.rb', line 6 def longitude @longitude end |