Open Sidebar
Close Sidebar
CrystalDoc.info
Source code
Shards.info
niceout
master
Niceout
Location
Weather
Generated using Crystal 1.14.0
2024-11-26 07:39:02 UTC
class
Niceout::
Weather
Niceout::Weather
Reference
Object
Defined in:
niceout/weather.cr
Constant Summary
APIKEY
=
ENV
[
"OPEN_WEATHER_MAP_KEY"
]
Constructors
.new
(location : Niceout::Location)
Instance Method Summary
#description_to_emoji
(description)
#load_weather
(lat, lon)
#temp_k_to_f
(temp)
#weather_display
Constructor Detail
def self.
new
(location :
Niceout::Location
)
#
[
View source
]
Instance Method Detail
def
description_to_emoji
(description)
#
[
View source
]
def
load_weather
(lat, lon)
#
[
View source
]
def
temp_k_to_f
(temp)
#
[
View source
]
def
weather_display
#
[
View source
]