Method: Weather#astronomy_data
- Defined in:
- lib/easy_weather/weather.rb
#astronomy_data ⇒ Object
22 23 24 25 26 27 28 |
# File 'lib/easy_weather/weather.rb', line 22 def astronomy_data data_hash = { sunrise: data["sys"]["sunrise"], sunset: data["sys"]["sunset"] } "Sunrice: #{data_hash[:sunrise]} UTC, sunset: #{data_hash[:sunset]} UTC" end |