Sha256: e332c3a6d057f55f36b0b3f977d1ee635e6ca6b3141b7be475b73eb25f6fdd73

Contents?: true

Size: 272 Bytes

Versions: 6

Compression:

Stored size: 272 Bytes

Contents

require 'owmo'

=begin rdoc
An example on how to get current conditions and use the different parameters.
=end
api_key = ""

weather = OWMO::Weather.new api_key

# http://openweathermap.org/current#data
current = weather.get :current, city_name: "London,UK"

puts current

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
owmo-2.0.1 examples/current.rb
owmo-2.0.0 examples/current.rb
owmo-1.2.0 examples/current.rb
owmo-1.1.0 examples/current.rb
owmo-1.0.1 examples/current.rb
owmo-1.0.0 examples/current.rb