class OWM::CurrentWeather
- OWM::CurrentWeather
- OWM::Conditions
- Reference
- Object
Overview
Contains all the information on the current weather status for any city.
Included Modules
- JSON::Serializable
Defined in:
owm/current_weather.crConstructors
-
.new(pull : JSON::PullParser)
Contains all the information on the current weather status for any city.
Instance Method Summary
- #coord : OWM::Coord
- #country : String
- #id : Int32
- #name : String
-
#timePassed
Returns the time passed since the instantiation of the object.
Instance methods inherited from class OWM::Conditions
clouds : Int32
clouds,
main : Main
main,
rain : Precipitation
rain,
snow : Precipitation
snow,
time : Time
time,
weather : Array(Weather)
weather,
wind : Wind
wind
Constructor methods inherited from class OWM::Conditions
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.