Method: OpenWeatherMap::City#initialize
- Defined in:
- lib/openweathermap/classes.rb
#initialize(name, lon, lat, country) ⇒ City
Create a new City object
33 34 35 36 37 |
# File 'lib/openweathermap/classes.rb', line 33 def initialize(name, lon, lat, country) @name = name @coordinates = OpenWeatherMap::Coordinates.new(lon, lat) @country = country end |