Module: OpenWeatherMap::Constants
- Defined in:
- lib/openweathermap.rb
Overview
All the constants needed for the library
Constant Summary collapse
- API_URL =
URL of the OpenWeatherMap API
'https://api.openweathermap.org'
- UNITS =
Accepted types of unit
%w(default metric imperial)
- LANGS =
Accepted locales
%w(ar bg ca cz de el fa fi fr gl hr hu it ja kr la lt mk nl pl pt ro ru se sk sl es tr ua vi zh_cn zh_tw en)
- URLS =
The different URLs
{ current: '/data/2.5/weather', forecast: '/data/2.5/forecast' }
- CONDITION_CODE =
All condition codes associated with emojis
{ '01d' => '☀', '02d' => '⛅', '03d' => '☁', '04d' => '☁☁', '09d' => '🌧', '10d' => '🌦', '11d' => '🌩', '13d' => '🌨', '50d' => '🌫', }