forked from dblock/open-weather-ruby-client
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.rb
More file actions
16 lines (15 loc) · 744 Bytes
/
Copy pathmain.rb
File metadata and controls
16 lines (15 loc) · 744 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# frozen_string_literal: true
module OpenWeather
module Models
class Main < Model
temperature_property 'temp' # temperature in requested unit
property 'pressure' # atmospheric pressure on the sea_level or grnd_level when unavailable, hPa
property 'humidity' # humidity in %
temperature_property 'feels_like' # temperature, accounting for the human perception of weather, in requested unit
temperature_property 'temp_min' # minimal currently observed temperature
temperature_property 'temp_max' # maximal currently observed temperature
property 'sea_level' # atmospheric pressure on the sea level, hPa
property 'grnd_level' # atmospheric pressure on the ground level, hPa
end
end
end