class OpenWeatherMap::CurrentWeather

Overview

Contains all the information on the current weather status for any city.

Included Modules

Defined in:

open_weather_map/current_weather.cr

Constructors

Instance Method Summary

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.


[View source]

Instance Method Detail

def country : String #

[View source]
def id : Int32 #

[View source]
def name : String #

[View source]
def timePassed #

Returns the time passed since the instantiation of the object. Useful for checking how recent the weather data is.


[View source]