Module: Yweather::Utils

Included in:
Condition, Forecast
Defined in:
lib/yweather/utils.rb

Instance Method Summary collapse

Instance Method Details

#parse_time(data) ⇒ Object



3
4
5
# File 'lib/yweather/utils.rb', line 3

def parse_time(data)
  data ? Time.parse(data) : nil
end