class

DarkSky::Forecast

Inherits JSON::Serializable < Reference < Object

Constructors

new(latitude : Float64, longitude : Float64, time : Time | Nil = nil, units : String = DEFAULT_UNITS, language : String = DEFAULT_LANUGAGE)
Source
new(pull : JSON::PullParser)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Class methods

now(latitude, longitude, units = DEFAULT_UNITS, language = DEFAULT_LANUGAGE)
Source

Instance methods

alerts
Source
api_calls
Source
at(time : Time | Nil)

set the @time attribute, and request a new batch of results with the new time set. This will return a JSONResults::Forecast for the given time.

Source
code
Source
currently
Source
daily
Source
flags
Source
hourly
Source
language
Source
language=(language : String)
Source
latitude
Source
longitude
Source
minutely
Source
offset
Source
retreive

Request the HTTP result, returning an instance of Forecast with the values all filled in from the server

Source
time

the time at which you wish to request a forecast.

Source
time=(time : Time | Nil)

the time at which you wish to request a forecast.

Source
timezone
Source
units
Source
units=(units : String)
Source