Class: Map::MercatorProjection::LatLng
- Inherits:
-
Object
- Object
- Map::MercatorProjection::LatLng
- Defined in:
- lib/contrek/map/mercator_projection.rb
Instance Attribute Summary collapse
-
#lat ⇒ Object
readonly
Returns the value of attribute lat.
-
#lng ⇒ Object
readonly
Returns the value of attribute lng.
Instance Method Summary collapse
-
#initialize(lat:, lng:) ⇒ LatLng
constructor
A new instance of LatLng.
Constructor Details
#initialize(lat:, lng:) ⇒ LatLng
Returns a new instance of LatLng.
7 8 9 10 |
# File 'lib/contrek/map/mercator_projection.rb', line 7 def initialize(lat:, lng:) @lat = lat @lng = lng end |
Instance Attribute Details
#lat ⇒ Object (readonly)
Returns the value of attribute lat.
6 7 8 |
# File 'lib/contrek/map/mercator_projection.rb', line 6 def lat @lat end |
#lng ⇒ Object (readonly)
Returns the value of attribute lng.
6 7 8 |
# File 'lib/contrek/map/mercator_projection.rb', line 6 def lng @lng end |