Class: GoogleGeocodings::Location

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(latitude, longitude) ⇒ Location

Returns a new instance of Location.



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

def initialize(latitude, longitude)
  @format = [("%.8f" % latitude), ("%.8f" % longitude)].join(',')
end

Instance Attribute Details

#formatObject (readonly)

Returns the value of attribute format.



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

def format
  @format
end