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)
Sourcenew(pull : JSON::PullParser)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceClass methods
now(latitude, longitude, units = DEFAULT_UNITS, language = DEFAULT_LANUGAGE)
SourceInstance methods
alerts
Sourceapi_calls
Sourceat(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.
code
Sourcecurrently
Sourcedaily
Sourceflags
Sourcehourly
Sourcelanguage
Sourcelanguage=(language : String)
Sourcelatitude
Sourcelongitude
Sourceminutely
Sourceoffset
Sourceretreive
Request the HTTP result, returning an instance of Forecast with the values all filled in from the server
timezone
Sourceunits
Sourceunits=(units : String)
Source