Class: Geokit::LatLng

Inherits:
Object
  • Object
show all
Defined in:
lib/ttc-gps/models.rb

Instance Method Summary collapse

Instance Method Details

#to_json(*args) ⇒ Object



25
26
27
28
29
30
# File 'lib/ttc-gps/models.rb', line 25

def to_json *args
  {
    'lat' => @lat,
    'lng' => @lng
  }.to_json(*args)
end