Class: Everlog::Dom::Value::Weather
Instance Method Summary
collapse
Methods included from Maybe
#maybe
#initialize, #parse_to_His
Instance Method Details
#condition ⇒ Object
13
14
15
16
|
# File 'lib/everlog/dom/value/weather.rb', line 13
def condition
cond = maybe(icons.each.max).to_s
cond == 'unknown' ? 'sunny' : cond
end
|
#max_temp ⇒ Object
5
6
7
|
# File 'lib/everlog/dom/value/weather.rb', line 5
def max_temp
maybe(tempms.each.max).to_i
end
|
#min_temp ⇒ Object
9
10
11
|
# File 'lib/everlog/dom/value/weather.rb', line 9
def min_temp
maybe(tempms.each.min).to_i
end
|