Class: GooglePlaces::Location
- Inherits:
-
Object
- Object
- GooglePlaces::Location
- Defined in:
- lib/google_places/location.rb
Instance Method Summary (collapse)
- - (Object) format
-
- (Location) initialize(lat, lng)
constructor
A new instance of Location.
Constructor Details
- (Location) initialize(lat, lng)
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
- (Object) format
8 9 10 |
# File 'lib/google_places/location.rb', line 8 def format [ @lat, @lng ].join(',') end |