Sha256: a4a0dbff4fbaaf35e5f2ea23178f347cd797307e4bfc69c1fb50ae9b7f55ae39

Contents?: true

Size: 313 Bytes

Versions: 6

Compression:

Stored size: 313 Bytes

Contents

# frozen_string_literal: true

require 'owmo'

api_key = ''

weather = OWMO::Weather.new api_key

# Kelvin
puts weather.get :current, city_name: 'London,UK'

# Imperial
puts weather.get :current, city_name: 'London,UK', units: :imperial

# Metric
puts weather.get :current, city_name: 'London,UK', units: :metric

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
owmo-2.1.5 examples/query_units.rb
owmo-2.1.2 examples/query_units.rb
owmo-2.1.1 examples/query_units.rb
owmo-2.1.0 examples/query_units.rb
owmo-2.0.4 examples/query_units.rb
owmo-2.0.3 examples/query_units.rb