Class: Incognia::Address::Coordinates

Inherits:
Object
  • Object
show all
Defined in:
lib/incognia_api/address.rb

Instance Method Summary collapse

Constructor Details

#initialize(lat:, lng:) ⇒ Coordinates

Returns a new instance of Coordinates.



18
19
20
# File 'lib/incognia_api/address.rb', line 18

def initialize(lat:, lng:)
  @lat, @lng = lat, lng
end

Instance Method Details

#to_hashObject



22
23
24
# File 'lib/incognia_api/address.rb', line 22

def to_hash
  { address_coordinates: { lat: @lat, lng: @lng } }
end