class OpenWeatherMap::Coordinates
Represents a location's coordinates
Attributes
lat[R]
@return [Float] Latitude of the location
lon[R]
@return [Float] Longitude of the location
Public Class Methods
new(lon, lat)
click to toggle source
Create a new Coordinates
object
@param lon [Float] Longitude of the location @param lat [Float] Latitude of the location
# File lib/openweathermap/classes.rb, line 61 def initialize(lon, lat) @lon = lon @lat = lat end