class CrystalWeather::Types::Conditions
- CrystalWeather::Types::Conditions
- Reference
- Object
Overview
Conditions
represents the weather conditions for a specific location
Defined in:
types/misc.crConstructors
-
.new(data : JSON::Any)
Creates a new
Conditions
object based on the data sent by the API
Instance Method Summary
-
#clouds : Int32
Clouds percentage in the sky
-
#description : String
Full description of the conditions
-
#emoji : Char
Emoji associated to the conditions, based on the
CrystalWeather::CONDITION_EMOJIS
list -
#humidity : Int32
The percentage of humidity in the air
-
#iconURL : String
URL to the PNG icon
-
#maximum_temperature : Float64
The maximum temperature, for large areas such as megalopolises Uses the same unit as
#temperature
. -
#minimum_temperature : Float64
The minimum temperature, for large areas such as megalopolises.
-
#name : String
Name of the conditions (Rain, snow, clouds...)
-
#pressure : Int32
The atmospheric pressure, in hPa (1000 hPa = 1 bar) It is on the sea level, if there is no sea_level or ground_level data
-
#temperature : Float64
The temperature.
-
#time : Time
Time of the described conditions
-
#wind_speed : Float64
Speed of the wind.
Constructor Detail
Instance Method Detail
Emoji associated to the conditions, based on the CrystalWeather::CONDITION_EMOJIS
list
The maximum temperature, for large areas such as megalopolises
Uses the same unit as #temperature
.
The minimum temperature, for large areas such as megalopolises.
Uses the same unit as #temperature
.
The atmospheric pressure, in hPa (1000 hPa = 1 bar) It is on the sea level, if there is no sea_level or ground_level data
The temperature. Unit depends on the choosen units format :
- default : Kelvin
- metric : Celsius
- imperial : Fahrenheit
Speed of the wind. Units depends on the choosen units format :
- default : meter/sec
- metric : meter/sec
- imperial : miles/hour