Class: Incognia::Address::Coordinates
- Inherits:
-
Object
- Object
- Incognia::Address::Coordinates
- Defined in:
- lib/incognia_api/address.rb
Instance Method Summary collapse
-
#initialize(lat:, lng:) ⇒ Coordinates
constructor
A new instance of Coordinates.
- #to_hash ⇒ Object
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_hash ⇒ Object
22 23 24 |
# File 'lib/incognia_api/address.rb', line 22 def to_hash { address_coordinates: { lat: @lat, lng: @lng } } end |