Class: WeatherLink::Units

Inherits:
Struct
  • Object
show all
Defined in:
lib/weatherlink.rb

Instance Method Summary collapse

Instance Method Details

#fetch(key) ⇒ Object



21
22
23
24
25
# File 'lib/weatherlink.rb', line 21

def fetch(key)
  return send(key.to_sym) if key && respond_to?(key.to_sym)

  nil
end