Class: Map::MercatorProjection::LatLng

Inherits:
Object
  • Object
show all
Defined in:
lib/contrek/map/mercator_projection.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#latObject (readonly)

Returns the value of attribute lat.



6
7
8
# File 'lib/contrek/map/mercator_projection.rb', line 6

def lat
  @lat
end

#lngObject (readonly)

Returns the value of attribute lng.



6
7
8
# File 'lib/contrek/map/mercator_projection.rb', line 6

def lng
  @lng
end