Class: GooglePlaces::Location

Inherits:
Object
  • Object
show all
Defined in:
lib/google_places/location.rb

Instance Method Summary collapse

Constructor Details

#initialize(lat, lng) ⇒ Location

Returns a new instance of Location



3
4
5
6
# File 'lib/google_places/location.rb', line 3

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

Instance Method Details

#formatObject



8
9
10
# File 'lib/google_places/location.rb', line 8

def format
  [ @lat, @lng ].join(',')
end