Class: GoogleGeocodings::Location
- Inherits:
-
Object
- Object
- GoogleGeocodings::Location
- Defined in:
- lib/google_geocodings/location.rb
Instance Attribute Summary collapse
-
#format ⇒ Object
readonly
Returns the value of attribute format.
Instance Method Summary collapse
-
#initialize(latitude, longitude) ⇒ Location
constructor
A new instance of Location.
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
#format ⇒ Object (readonly)
Returns the value of attribute format.
3 4 5 |
# File 'lib/google_geocodings/location.rb', line 3 def format @format end |