Sha256: 0ab9241e20d64c9e421419ca6d74cdeeec0df523f05e9ffc17cc5a771115513d
Contents?: true
Size: 415 Bytes
Versions: 6
Compression:
Stored size: 415 Bytes
Contents
# frozen_string_literal: true require 'owmo' api_key = '' weather = OWMO::Weather.new api_key # Response in JSON format puts weather.get :current, city_name: 'London,UK' puts weather.get :current, city_name: 'London,UK', mode: :json # Response in XML format puts weather.get :current, city_name: 'London,UK', mode: :xml # Response in HTML format puts weather.get :current, city_name: 'London,UK', mode: :html
Version data entries
6 entries across 6 versions & 1 rubygems