examples/query_units.rb in owmo-2.0.1 vs examples/query_units.rb in owmo-2.0.3
- old
+ new
@@ -1,14 +1,16 @@
+# frozen_string_literal: true
+
require 'owmo'
-api_key = ""
+api_key = ''
weather = OWMO::Weather.new api_key
# Kelvin
-puts weather.get :current, city_name: "London,UK"
+puts weather.get :current, city_name: 'London,UK'
# Imperial
-puts weather.get :current, city_name: "London,UK", units: :imperial
+puts weather.get :current, city_name: 'London,UK', units: :imperial
# Metric
-puts weather.get :current, city_name: "London,UK", units: :metric
+puts weather.get :current, city_name: 'London,UK', units: :metric