class OpenWeatherMap::CurrentWeather
- OpenWeatherMap::CurrentWeather
- OpenWeatherMap::Weather
- Reference
- Object
Overview
Contains all the information on the current weather status for any city.
Included Modules
- JSON::Serializable
Defined in:
open_weather_map/current_weather.crConstructors
-
.new(pull : JSON::PullParser)
Contains all the information on the current weather status for any city.
Instance Method Summary
- #country : String
- #id : Int32
- #name : String
-
#timePassed
Returns the time passed since the instantiation of the object.
Instance methods inherited from class OpenWeatherMap::Weather
clouds : Int32
clouds,
conditions : Array(Conditions)
conditions,
grnd_level
grnd_level,
humidity
humidity,
lat
lat,
lon
lon,
pressure
pressure,
rain
rain,
sea_level
sea_level,
snow
snow,
temp
temp,
temp_max
temp_max,
temp_min
temp_min,
time : Time
time,
weather_description
weather_description,
weather_icon
weather_icon,
weather_id
weather_id,
weather_main
weather_main,
wind_deg
wind_deg,
wind_gust
wind_gust,
wind_speed
wind_speed
Constructor methods inherited from class OpenWeatherMap::Weather
new(pull : JSON::PullParser)
new
Constructor Detail
def self.new(pull : JSON::PullParser)
#
Contains all the information on the current weather status for any city.
Instance Method Detail
def timePassed
#
Returns the time passed since the instantiation of the object. Useful for checking how recent the weather data is.